Skip to content

Commit 9344d7f

Browse files
committed
move env
1 parent d4d042d commit 9344d7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
2121
type: boolean
2222
default: true
2323

24+
# 通过 push 触发的 CI 通过 env 调控。
25+
env:
26+
DEPLOY_DENO_PUSH: true
27+
DEPLOY_DOCKER_PUSH: false
28+
2429
jobs:
2530
unit-test:
2631
runs-on: ubuntu-latest
@@ -101,9 +106,6 @@ jobs:
101106

102107
deploy-to-deno:
103108
needs: [upload-art]
104-
# 通过 push 触发的 CI 通过 env 调控。
105-
env:
106-
DEPLOY_DENO_PUSH: true
107109
if: ${{ inputs.deno }} || ( ${{ github.event_name == 'push' }} && ${{ env.DEPLOY_DENO_PUSH == 'true' }} )
108110
runs-on: ubuntu-latest
109111
permissions:
@@ -122,8 +124,6 @@ jobs:
122124

123125
release-docker:
124126
needs: [test-docker]
125-
env:
126-
DEPLOY_DOCKER_PUSH: false
127127
if: ${{ inputs.docker }} || ( ${{ github.event_name == 'push' }} && ${{ env.DEPLOY_DOCKER_PUSH == 'true' }} )
128128
runs-on: ubuntu-latest
129129

0 commit comments

Comments
 (0)