From df12d34794c9ba9a89e29bfbf1402faefab399d1 Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Wed, 6 Nov 2024 12:04:46 +0100 Subject: [PATCH] deploy pages from actions --- .github/workflows/ExportPluto.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ExportPluto.yaml b/.github/workflows/ExportPluto.yaml index 9d24427..8b93646 100644 --- a/.github/workflows/ExportPluto.yaml +++ b/.github/workflows/ExportPluto.yaml @@ -11,9 +11,11 @@ concurrency: group: pluto-export cancel-in-progress: true -# This action needs permission to write the exported HTML file to the gh-pages branch. +# This action needs permission to write to pages and to id-token to upload the pages. permissions: - contents: write + contents: read + pages: write + id-token: write # (all other permission fields default to "none") jobs: @@ -60,11 +62,10 @@ jobs: # more parameters can go here )' - - - name: Deploy to gh-pages - uses: JamesIves/github-pages-deploy-action@releases/v4 + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - folder: . - single-commit: true + path: ./ + + - name: Deploy GitHub Pages site + uses: actions/deploy-pages@v4