feat: truly limit the deploy to master

main
Henrik Böving 2023-01-01 22:15:08 +01:00
parent dd5aae412d
commit 247dca1182
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ jobs:
env: env:
DOC_GEN_REF: ${{ github.event.pull_request.head.sha }} DOC_GEN_REF: ${{ github.event.pull_request.head.sha }}
- name: generate and deploy docs (master only) - name: generate and deploy docs (main only)
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'leanprover/doc-gen4' if: (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'leanprover/doc-gen4' && github.ref_name == 'master'
run: | run: |
cd ../ cd ../
./doc-gen4/deploy_docs.sh "mathlib4" "doc-gen4" "true" "LeanInk" ./doc-gen4/deploy_docs.sh "mathlib4" "doc-gen4" "true" "LeanInk"