mtinfo/.github/workflows/generate.yml
2021-02-10 07:57:17 +01:00

22 lines
386 B
YAML

name: generate
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: generate
run: ./scripts/generate-site.sh
- name: deploy
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output