fix: do not try to deploy mdbook if not main

This commit is contained in:
rvcas 2022-10-08 19:24:45 -04:00 committed by Lucas
parent 6b79eb0961
commit 0889e7d5c4
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
deploy: deploy:
if: ${{ github.ref == 'refs/heads/main' }}
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}