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
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 }}