From a442fe82b79df8f093f78e9c5ec4e9f8c1e96ac6 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Sat, 19 Nov 2022 13:21:25 +0100 Subject: [PATCH] Update rustdoc.yml --- .github/workflows/rustdoc.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index b303496..679bb51 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -11,7 +11,7 @@ on: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: - contents: write + contents: read pages: write id-token: write @@ -48,10 +48,17 @@ jobs: args: -p tauri-sys --all-features --no-deps - name: Create index.html - run: echo "" > ./target/doc/index.html + run: echo '' > ./target/doc/index.html + + - name: Setup Pages + uses: actions/configure-pages@v2 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload entire repository + path: './target/doc' - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4.4.1 - with: - folder: ./target/doc - single-commit: true + id: deployment + uses: actions/deploy-pages@v1