Skip to content

Commit

Permalink
fix warnings on doc upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Nov 3, 2023
1 parent 61f16c6 commit 373a89a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/upload-doc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Upload Documentation

on:
push: { branches: [master] }
push:
branches: [master]

permissions: { contents: write }
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -18,17 +20,17 @@ jobs:

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with: { toolchain: nightly }
with:
toolchain: nightly

- name: Build Docs
run: cargo doc --workspace --all-features --no-deps
run: cargo doc --no-deps --workspace --all-features

- name: Tweak HTML
run: echo '<meta http-equiv="refresh" content="0;url=actix_cors/index.html">' > target/doc/index.html

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/doc
folder: target/doc
branch: gh-pages

0 comments on commit 373a89a

Please sign in to comment.