This is a GitHub Action that converts Bikeshed source documents to HTML.
Just add this snippet to your GitHub workflow:
- name: Output to HTML
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1
So, if you follow the rule that anything in the master
branch is always deployable,
you can automatically convert your Bikeshed source in the master branch and push the result to GitHub Pages like this:
name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Output to HTML
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1
- name: Publish HTML to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}