ci: only deploy docs on release
This commit is contained in:
parent
d313743e10
commit
f66922f995
1 changed files with 2 additions and 2 deletions
4
.github/workflows/docs.yaml
vendored
4
.github/workflows/docs.yaml
vendored
|
@ -39,8 +39,8 @@ jobs:
|
|||
|
||||
# Deployment job
|
||||
deploy:
|
||||
# do not run on forks and PRs
|
||||
if: github.repository == 'mtcute/mtcute' && github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
# only run on releases
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'mtcute-bot'
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
|
Loading…
Reference in a new issue