File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- " main"
6
- - " dev "
6
+ - " feature-liuzx-ci "
7
7
tags :
8
8
- " v*"
9
9
23
23
24
24
# 通过 push 触发的 CI 通过 env 调控。
25
25
env :
26
- DEPLOY_DOCKER : false
27
- DEPLOY_DENO : true
26
+ DEPLOY_DOCKER_PUSH : false
27
+ DEPLOY_DENO_PUSH : true
28
28
29
29
jobs :
30
30
unit-test :
@@ -106,13 +106,14 @@ jobs:
106
106
107
107
deploy-to-deno :
108
108
needs : [upload-art]
109
- if : ${{ inputs.deno || (github.event_name == 'push' && DEPLOY_DENO) }}
110
109
runs-on : ubuntu-latest
111
110
permissions :
112
111
id-token : write
113
112
contents : read
114
113
115
114
steps :
115
+ if : ${{ inputs.deno || (github.event_name == 'push' && DEPLOY_DENO_PUSH) }}
116
+
116
117
- uses : actions/download-artifact@v4
117
118
with :
118
119
name : deno.js
@@ -124,10 +125,11 @@ jobs:
124
125
125
126
release-docker :
126
127
needs : [test-docker]
127
- if : ${{ inputs.docker || (github.event_name == 'push' && DEPLOY_DOCKER) }}
128
128
runs-on : ubuntu-latest
129
129
130
130
steps :
131
+ if : ${{ inputs.docker || (github.event_name == 'push' && DEPLOY_DOCKER_PUSH) }}
132
+
131
133
- uses : actions/checkout@v3
132
134
133
135
- name : Login to DockerHub
You can’t perform that action at this time.
0 commit comments