wiki: reset a11y #114
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: publish | |
on: push | |
jobs: | |
publish: | |
name: run | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: main | |
fetch-depth: 1 | |
- uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
path: main/gh-pages | |
- name: 'Setup' | |
run: | | |
sudo apt-get -yqq install wget | |
wget https://github.com/jgm/pandoc/releases/download/2.14.1/pandoc-2.14.1-1-amd64.deb | |
sudo dpkg -i pandoc-2.14.1-1-amd64.deb | |
pandoc -v | |
- name: 'Build' | |
run: | | |
cd main | |
make init | |
make all | |
make clean | |
- name: 'Publish' | |
run: | | |
cd main/gh-pages | |
git config --global user.name 'crispbot' | |
git config --global user.email 'crispbot@users.noreply.github.com' | |
git add . | |
git commit --allow-empty -m "Auto published at $(date +%Y%m%d-%H:%M:%S)" | |
git remote set-url --push origin https://crispgm:${{ secrets.ACCESS_TOKEN }}@github.com/crispgm/wiki-base | |
git push origin gh-pages |