Skip to content

Commit

Permalink
Use native actions for publishing to Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jul 10, 2023
1 parent cad6098 commit e61be0b
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ on:
push:
branches:
- master
- publish-pages

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
Expand All @@ -15,9 +25,11 @@ jobs:
- name: Output Bikeshed to HTML
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1

- name: Publish HTML to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3.7.3
- uses: actions/configure-pages@v3

- uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
path: '.'

- id: deployment
uses: actions/deploy-pages@v2

0 comments on commit e61be0b

Please sign in to comment.