1
1
mirror of https://github.com/srid/ema.git synced 2024-12-02 09:15:10 +03:00
ema/.github/workflows/publish.yaml
2021-05-19 19:12:46 -04:00

23 lines
547 B
YAML

name: "Publish"
on:
# Run only when pushing to master branch
push:
branches:
- master
jobs:
emanote:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build emanote site 🔧
run: |
mkdir -p output
docker run -v $PWD:/data sridca/emanote emanote -C /data/docs gen /data/output
- name: Deploy to gh-pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output/
cname: ema.srid.ca