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