use copyright and sotd from bikeshed-boilerplate #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow for processing and publishing bikeshed documents to github pages | |
name: Publish documents | |
on: | |
push: | |
# only concerned with changes in the main branch | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Upgrade pip | |
run: python3 -m pip install --upgrade pip | |
- name: Install Bikeshed | |
run: | | |
python3 -m pip install --upgrade bikeshed | |
bikeshed update | |
- name: Generate HTML | |
run: for bsdoc in ./*.bs; do bikeshed spec $bsdoc; done | |
- name: Create publication | |
run: | | |
mkdir publish | |
for file in index.html; do cp $file ./publish/; done | |
- name: Publish to GitHub pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
publish_dir: ./publish | |
personal_token: ${{ secrets.GITHUB_TOKEN }} |