Skip to content

Commit f008d87

Browse files
committed
ci: 更新部署条件并暂时移除手动审批流程
- 在部署条件中增加了 'refs/heads/dev' 分支,以支持开发分支的部署 - 暂时注释掉了手动审批步骤,以简化部署流程
1 parent f0a60e9 commit f008d87

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
deploy:
124124
needs: docker-build
125125
runs-on: ubuntu-latest
126-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
126+
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
127127
steps:
128128
- name: SSH Deploy
129129
uses: appleboy/ssh-action@v0.1.10
@@ -147,10 +147,10 @@ jobs:
147147
# 可以在这里添加停止旧容器、启动新容器的命令
148148
# 例如:docker-compose up -d 或 kubectl apply -f k8s-deployment.yaml
149149
150-
- name: Manual approval
151-
uses: trstringer/manual-approval@v2
152-
with:
153-
secret: ${{ github.token }}
154-
approvers: your-github-username
155-
minimum-approvals: 1
156-
exclude-authors: github-actions[bot]
150+
# - name: Manual approval
151+
# uses: trstringer/manual-approval@v2
152+
# with:
153+
# secret: ${{ github.token }}
154+
# approvers: your-github-username
155+
# minimum-approvals: 1
156+
# exclude-authors: github-actions[bot]

0 commit comments

Comments
 (0)