From f66922f995fe3cdd976ce7a741bee0cd03dbc007 Mon Sep 17 00:00:00 2001 From: Alina Sireneva Date: Fri, 15 Mar 2024 00:25:37 +0300 Subject: [PATCH] ci: only deploy docs on release --- .github/workflows/docs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 2d3f2c88..7edc3a3f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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 }}