From 9cc0ab7b8c1778764b139a7e7d30cc97522448c3 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Fri, 3 May 2024 18:04:01 +0100 Subject: [PATCH] ci: testing alternative gh pages workflow Signed-off-by: Brian McGee --- .github/workflows/gh-pages.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ddd5c51..9336e1b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -11,9 +11,11 @@ on: permissions: contents: write + pages: write + id-token: write jobs: - gh-pages: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -32,3 +34,16 @@ jobs: if: github.ref == 'refs/heads/main' with: path: result + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + name: deploy + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4