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