diff --git a/ci b/ci index ac879cb2cf5c9435cc17e9b7edfb67f474c4fa26..e721010b36f812794e57fd93ec02f5643b10fea4 100755 --- a/ci +++ b/ci @@ -21,8 +21,11 @@ if [ -n "$BUILDKITE" ]; then rm -fr zig-out/site mkdir zig-out/site cp zig-out/package/README.html zig-out/site/index.html - + branch=$BUILDKITE_BRANCH + if [ "$branch" = "dev" ]; then + branch=main + fi CLOUDFLARE_API_TOKEN=$(buildkite-agent secret get CLOUDFLARE_API_TOKEN) \ 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 + npx wrangler pages deploy zig-out/site --branch "$branch" --commit-hash "$commit" --no-bundle --project-name language-manual fi