Migrate core publication to IG publisher #27
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 docs | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
types: [opened, synchronize] # This will trigger the workflow only when a PR is opened or updated with new commits | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.6 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.6 | |
- name: Setup dependencies | |
run: pip install -r requirements.txt | |
- name: Generate docs | |
run: mkdocs build --verbose --clean --strict | |
- name: Deploy | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site | |
cname: cds-hooks.org |