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 diff --git a/README.md b/README.md index 7448027..b267a72 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ Wait for the Action to finish running your notebook. ### 👉 Step 3 -Go to the ["Settings" page](./settings) of your repository, and go to [the "Pages" section](./settings/pages). For the "Source", choose `gh-pages`. Wait a minute for everything to initialize, and the URL to your web page will be shown! +Go to the ["Settings" page](./settings) of your repository, and go to [the "Pages" section](./settings/pages). For the "Source", choose `GitHub Actions`. Wait a minute for everything to initialize, and the URL to your web page will be shown! -screenshot of the Pages settings, displaying the URL after the web page is ready +screenshot of the Pages settings, displaying the URL after the web page is ready Don't worry if it doesn't work immediately! It can take a while for the web page to be ready, even after your settings page says it's done. (Github pages says 20 minutes, but it can take even longer.) @@ -59,9 +59,9 @@ Your notebooks will run on github every time that you update the files in this r ### 👉 Step 2 -Go to the ["Settings" page](./settings) of your repository, and go to [the "Pages" section](./settings/pages). For the "Source", choose `gh-pages`. Wait a minute for everything to initialize, and the URL to your web page will be shown! +Go to the ["Settings" page](./settings) of your repository, and go to [the "Pages" section](./settings/pages). For the "Source", choose `GitHub Actions`. Wait a minute for everything to initialize, and the URL to your web page will be shown! -Schermafbeelding 2021-01-06 om 00 43 00 +screenshot of the actions page, showing a currently running workflow Don't worry if it doesn't work immediately! It can take a while for the web page to be ready, even after your settings page says it's done. (Github pages says 20 minutes, but it can take even longer.)