authorchloe caruso <git@paperclover.net> 2024-09-11 22:47:03-07:00
committerchloe caruso <git@paperclover.net> 2024-09-11 22:47:03-07:00
log5c50ded2676caace6bf40626dc63685ad22cc3e1
treec084def13cfc1315e07d76e3807d50347827a066
parent8880b270fac6fed25ebafc2aa2a49ac89622ade6

chore: fix deployment script


1 files changed, 5 insertions(+), 2 deletions(-)

ci+5-2
...@@ -12,7 +12,7 @@ typos...@@ -12,7 +12,7 @@ typos
12dprint check12dprint check
13./build test package --summary all13./build test package --summary all
1414
15if [ -n "$UPLOAD_RELEASE_ARTIFACTS" ]; then15if [ -n "$BUILDKITE" ]; then
16 pushd zig-out/package16 pushd zig-out/package
17 zip compiler-$commit.zip *17 zip compiler-$commit.zip *
18 buildkite-agent artifact upload compiler-$commit.zip18 buildkite-agent artifact upload compiler-$commit.zip
...@@ -21,5 +21,8 @@ if [ -n "$UPLOAD_RELEASE_ARTIFACTS" ]; then...@@ -21,5 +21,8 @@ if [ -n "$UPLOAD_RELEASE_ARTIFACTS" ]; then
21 rm -fr zig-out/site21 rm -fr zig-out/site
22 mkdir zig-out/site22 mkdir zig-out/site
23 cp zig-out/package/README.html zig-out/site/index.html23 cp zig-out/package/README.html zig-out/site/index.html
24 npx wrangler pages deploy zig-out/site --commit-hash "$commit" --no-bundle --project-name language-manual24
25 CLOUDFLARE_API_KEY=$(buildkite-agent secret get CLOUDFLARE_API_KEY) \
26 CLOUDFLARE_ACCOUNT_ID=$(buildkite-agent secret get CLOUDFLARE_ACCOUNT_ID) \
27 npx wrangler pages deploy zig-out/site --commit-hash "$commit" --no-bundle --project-name language-manual
25fi28fi