Skip to content

Commit

Permalink
👷 新增推送记录中含有 [deploy] 时执行部署流程
Browse files Browse the repository at this point in the history
  • Loading branch information
pecasha committed Jun 17, 2024
1 parent 63c17de commit d7cbf38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit d7cbf38

Please sign in to comment.