Skip to content

Commit

Permalink
Update from template
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Feb 28, 2024
2 parents 1f9762f + 80d39e6 commit ec831e3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 14 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,36 @@ 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:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Output Bikeshed to HTML
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1
- uses: actions/configure-pages@v4

- name: Build and validate
uses: w3c/spec-prod@v2
with:
VALIDATE_MARKUP: false

- name: Publish HTML to GitHub Pages
if: success()
uses: peaceiris/[email protected]
- uses: actions/download-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
name: spec-prod-result

- uses: actions/upload-pages-artifact@v3
with:
path: '.'

- id: deployment
uses: actions/deploy-pages@v4
8 changes: 5 additions & 3 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Output Bikeshed to HTML
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1
- name: Build and validate
uses: w3c/spec-prod@v2
with:
VALIDATE_MARKUP: false
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ help:
@echo " make watch Generate HTML each time the source changes"

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

watch:
docker run -v "`pwd`:/spec" -w /spec netwerkdigitaalerfgoed/bikeshed:1.7.0 sh -c "bikeshed watch"
docker run --rm -v "`pwd`:/spec" -w /spec netwerkdigitaalerfgoed/bikeshed:1.7.0 sh -c "bikeshed watch"
Binary file added images/step-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/step-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec831e3

Please sign in to comment.