1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 09:12:57 +01:00

fix warnings on doc upload workflow

This commit is contained in:
Rob Ede 2023-11-03 20:02:50 +00:00
parent 61f16c609a
commit 373a89a978
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -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 }}
@ -18,10 +20,11 @@ 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
@ -29,6 +32,5 @@ jobs:
- 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