ci(deploy): 仅允许 master 自动部署

This commit is contained in:
admin committed 2026-09-14 16:09:02 +08:00
1 parent 77e05998a5
commit 8171705c5f
8 files changed
+74 -24

No files matched your search

+3 -3
View File
@@ -3,14 +3,14 @@ name: Deploy WeReadBoard
on:
push:
branches:
- dev
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: deploy-dev
group: deploy-master
cancel-in-progress: true
steps:
@@ -27,7 +27,7 @@ jobs:
SERVER_USER: ${{ secrets.SERVER_USER }}
DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
SERVICE_NAME: ${{ vars.SERVICE_NAME }}
DEPLOY_BRANCH: ${{ github.ref_name }}
DEPLOY_BRANCH: master
run: |
if [ -z "$SERVER_PORT" ]; then
SERVER_PORT="22"