Add workflow for deploying HTML #3
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
html: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Compile HTML with make/pandoc | |
run: make build | |
- name: Configure git user | |
run: | | |
git config --global user.name 'OTP Bot' | |
git config --global user.email '[email protected]' | |
- name: Push latest HTML | |
run: | | |
git add *.html | |
git commit -m "Add compiled HTML" | |
git push | |