From d7cbf383496721bcc223e3fe14225fcd506586a7 Mon Sep 17 00:00:00 2001 From: pecasha Date: Mon, 17 Jun 2024 19:11:02 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E8=AE=B0=E5=BD=95=E4=B8=AD=E5=90=AB=E6=9C=89?= =?UTF-8?q?=20[deploy]=20=E6=97=B6=E6=89=A7=E8=A1=8C=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-prod.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index c340278..cfeec07 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -1,8 +1,13 @@ name: Deploy Prod to Tencent Cloud -on: workflow_dispatch +on: + push: + branches: + - main + workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy]')) env: NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: