From 2d8fd4423a45e514c34bc2aa0a5748bf8d9e0bb1 Mon Sep 17 00:00:00 2001 From: "Spencer C. Imbleau" Date: Thu, 25 Apr 2024 19:44:57 -0400 Subject: [PATCH] ci: deprecate gh-pages branch deployment --- .github/workflows/release-gh-pages.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-gh-pages.yml b/.github/workflows/release-gh-pages.yml index 4d82b13..272d12e 100644 --- a/.github/workflows/release-gh-pages.yml +++ b/.github/workflows/release-gh-pages.yml @@ -5,6 +5,13 @@ on: jobs: release: + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Setup | Checkout @@ -80,8 +87,14 @@ jobs: run: | PDF='coverletter.pdf' j2 templates/embed.html.j2 > pub/coverletter-embed.html - - name: Deploy, Github Pages - uses: peaceiris/actions-gh-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: pub/ + path: 'pub/' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file