ci: testing alternative gh pages workflow

Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
Brian McGee 2024-05-03 18:04:01 +01:00
parent e232ffe249
commit 9cc0ab7b8c
Signed by: brianmcgee
GPG Key ID: D49016E76AD1E8C0

View File

@ -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