Skip to content

Commit 335c7fe

Browse files
committed
deploy container first
1 parent 464f45a commit 335c7fe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/composite/deploy-cloudflare/action.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,26 +97,26 @@ runs:
9797
# run: |
9898
# bun run ./packages/gitbook-v2/openNext/customWorkers/script/updateWrangler.ts ${{ steps.extract_server_version_id.outputs.version_id }}
9999

100-
- id: upload_middleware
101-
name: Upload middleware to Cloudflare
100+
- id: deploy_container
101+
name: Deploy container to Cloudflare
102102
uses: cloudflare/[email protected]
103103
with:
104104
apiToken: ${{ inputs.apiToken }}
105105
accountId: ${{ inputs.accountId }}
106106
workingDirectory: ./
107107
wranglerVersion: '4.21.0'
108-
environment: ${{ inputs.environment }}
109-
command: ${{ format('versions upload --tag {0} --message "{1}"', inputs.commitTag, inputs.commitMessage) }} --config ./packages/gitbook-v2/openNext/customWorkers/middlewareWrangler.jsonc
110-
111-
- id: deploy_container
112-
name: Deploy container to Cloudflare
108+
command: deploy --config ./packages/gitbook-v2/openNext/customWorkers/containerWrangler.jsonc
109+
110+
- id: upload_middleware
111+
name: Upload middleware to Cloudflare
113112
uses: cloudflare/[email protected]
114113
with:
115114
apiToken: ${{ inputs.apiToken }}
116115
accountId: ${{ inputs.accountId }}
117116
workingDirectory: ./
118117
wranglerVersion: '4.21.0'
119-
command: deploy --config ./packages/gitbook-v2/openNext/customWorkers/containerWrangler.jsonc
118+
environment: ${{ inputs.environment }}
119+
command: ${{ format('versions upload --tag {0} --message "{1}"', inputs.commitTag, inputs.commitMessage) }} --config ./packages/gitbook-v2/openNext/customWorkers/middlewareWrangler.jsonc
120120

121121
# - name: Extract middleware version worker ID
122122
# shell: bash

0 commit comments

Comments
 (0)