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
|
- 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 }}
|
||||||
|
|
Loading…
Reference in New Issue