From df12d34794c9ba9a89e29bfbf1402faefab399d1 Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Wed, 6 Nov 2024 12:04:46 +0100 Subject: [PATCH 1/3] 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 From fdacfa426d8b3aa3be821edd9b452b9e26310bf2 Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Wed, 27 Aug 2025 15:37:55 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7448027..d1215a8 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.) From ab8ec284fb8fa2768b063bc4e4151a51a8fdfb9f Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Wed, 27 Aug 2025 15:48:36 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1215a8..b267a72 100644 --- a/README.md +++ b/README.md @@ -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.)