ci: only deploy docs on release

This commit is contained in:
alina 🌸 2024-03-15 00:25:37 +03:00
parent d313743e10
commit f66922f995
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -39,8 +39,8 @@ jobs:
# Deployment job # Deployment job
deploy: deploy:
# do not run on forks and PRs # only run on releases
if: github.repository == 'mtcute/mtcute' && github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'mtcute-bot'
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}