Skip to content

Commit

Permalink
Use new publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jul 10, 2023
1 parent facafdb commit 838f2df
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ on:
branches:
- master

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 +24,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
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
help:
@echo "Generate HTML from a Bikeshed source document:"
@echo " make spec Generate HTML"
@echo " make watch Generate HTML each time the source changes"

spec:
docker run --rm -v "`pwd`:/spec" -w /spec netwerkdigitaalerfgoed/bikeshed:1.7.0

watch:
docker run --rm -v "`pwd`:/spec" -w /spec netwerkdigitaalerfgoed/bikeshed:1.7.0 sh -c "bikeshed watch"

0 comments on commit 838f2df

Please sign in to comment.