Push only on merge

This commit is contained in:
Blottiere Paul 2022-02-07 16:02:58 +01:00
parent 77b62711aa
commit 61957df64d

View File

@ -15,6 +15,7 @@ jobs:
run: virtualenv -p /usr/bin/python3 venv && source venv/bin/activate && pip install sphinx sphinx_rtd_theme && cd doc && make html && cd -
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages