Latest Ubuntu #64
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
name: Build site | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_site: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- id: about_to_html | |
uses: docker://pandoc/latex:2.9 | |
with: | |
args: --from=markdown --to=html --metadata pagetitle="About" --include-in-header=head.hc --include-before-body=nav.hc --include-after-body=tail.hc --wrap=auto --output=about.html about.md | |
- id: diy_to_html | |
uses: docker://pandoc/latex:2.9 | |
with: | |
args: --from=markdown --to=html --metadata pagetitle="DIY" --include-in-header=head.hc --include-before-body=nav.hc --include-after-body=tail.hc --wrap=auto --output=diy.html diy.md | |
- id: links_to_html | |
uses: docker://pandoc/latex:2.9 | |
with: | |
args: --from=markdown --to=html --metadata pagetitle="Links" --include-in-header=head.hc --include-before-body=nav.hc --include-after-body=tail.hc --wrap=auto --output=links.html links.md | |
- id: index_to_html | |
run: | | |
./build-sort | |
./build-index | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add -u | |
git commit -m "Regenerated HTML pages" | |
git push |