fix: do not try to deploy mdbook if not main
This commit is contained in:
parent
6b79eb0961
commit
0889e7d5c4
|
@ -35,6 +35,7 @@ jobs:
|
|||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
deploy:
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
|
Loading…
Reference in New Issue