diff --git a/ci b/ci index 49e4fdee48bbf259be988af2ea9399754ad4f969..2e769eea97a156523373f03770d3f2815b0ef3ce 100755 --- a/ci +++ b/ci @@ -12,7 +12,7 @@ typos dprint check ./build test package --summary all -if [ -n "$UPLOAD_RELEASE_ARTIFACTS" ]; then +if [ -n "$BUILDKITE" ]; then pushd zig-out/package zip compiler-$commit.zip * buildkite-agent artifact upload compiler-$commit.zip @@ -21,5 +21,8 @@ if [ -n "$UPLOAD_RELEASE_ARTIFACTS" ]; then rm -fr zig-out/site mkdir zig-out/site cp zig-out/package/README.html zig-out/site/index.html - npx wrangler pages deploy zig-out/site --commit-hash "$commit" --no-bundle --project-name language-manual + + CLOUDFLARE_API_KEY=$(buildkite-agent secret get CLOUDFLARE_API_KEY) \ + CLOUDFLARE_ACCOUNT_ID=$(buildkite-agent secret get CLOUDFLARE_ACCOUNT_ID) \ + npx wrangler pages deploy zig-out/site --commit-hash "$commit" --no-bundle --project-name language-manual fi