From 373a89a97813e2e53b3d4a1abffc16d0b8308714 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 3 Nov 2023 20:02:50 +0000 Subject: [PATCH] fix warnings on doc upload workflow --- .github/workflows/upload-doc.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/upload-doc.yml b/.github/workflows/upload-doc.yml index 3abf6d1c8..ac0ec3f94 100644 --- a/.github/workflows/upload-doc.yml +++ b/.github/workflows/upload-doc.yml @@ -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 '' > 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