Skip to content
forked from madler/zlib

Commit 0e10f81

Browse files
committed
fix: add --remote flag to wrangler R2 uploads
wrangler defaults to local mode without --remote flag. Add --remote to ensure uploads go to actual Cloudflare R2.
1 parent 3cb3d5c commit 0e10f81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/wasm-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,14 @@ jobs:
140140
141141
# Deploy to versioned path (immutable)
142142
wrangler r2 object put discere-os-wasm-production/zlib/${VERSION}/zlib-side.wasm \
143+
--remote \
143144
--file=install/wasm/zlib-side.wasm \
144145
--content-type=application/wasm \
145146
--cache-control="public, max-age=31536000, immutable"
146147
147148
# Deploy to SHA path (content-addressable)
148149
wrangler r2 object put discere-os-wasm-production/zlib/sha-${SHA:0:7}/zlib-side.wasm \
150+
--remote \
149151
--file=install/wasm/zlib-side.wasm \
150152
--content-type=application/wasm \
151153
--cache-control="public, max-age=31536000, immutable"
@@ -204,6 +206,7 @@ jobs:
204206
VERSION="${{ steps.version.outputs.VERSION }}"
205207
206208
wrangler r2 object put discere-os-wasm-production/zlib/${VERSION}/zlib-side.wasm \
209+
--remote \
207210
--file=install/wasm/zlib-side.wasm \
208211
--content-type=application/wasm \
209212
--cache-control="public, max-age=31536000, immutable"

0 commit comments

Comments
 (0)