mirror of
https://github.com/KingHWJ/WeReadBoard.git
synced 2026-11-03 18:24:58 +08:00
ci(deploy): 仅允许 master 自动部署
This commit is contained in:
1 parent
77e05998a5
commit
8171705c5f
8 files changed
+74
-24
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user