1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-30 10:32:55 +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 name: Upload Documentation
on: on:
push: { branches: [master] } push:
branches: [master]
permissions: { contents: write } permissions:
contents: write
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -18,10 +20,11 @@ jobs:
- name: Install Rust (nightly) - name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with: { toolchain: nightly } with:
toolchain: nightly
- name: Build Docs - name: Build Docs
run: cargo doc --workspace --all-features --no-deps run: cargo doc --no-deps --workspace --all-features
- name: Tweak HTML - name: Tweak HTML
run: echo '<meta http-equiv="refresh" content="0;url=actix_cors/index.html">' > target/doc/index.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 - name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.4.3 uses: JamesIves/github-pages-deploy-action@v4.4.3
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} folder: target/doc
BRANCH: gh-pages branch: gh-pages
FOLDER: target/doc