| ... | ... | @@ -21,8 +21,11 @@ if [ -n "$BUILDKITE" ]; then |
| 21 | 21 | rm -fr zig-out/site |
| 22 | 22 | mkdir zig-out/site |
| 23 | 23 | cp zig-out/package/README.html zig-out/site/index.html |
| 24 | | |
| 24 | branch=$BUILDKITE_BRANCH |
| 25 | if [ "$branch" = "dev" ]; then |
| 26 | branch=main |
| 27 | fi |
| 25 | 28 | CLOUDFLARE_API_TOKEN=$(buildkite-agent secret get CLOUDFLARE_API_TOKEN) \ |
| 26 | 29 | 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 |
| 30 | npx wrangler pages deploy zig-out/site --branch "$branch" --commit-hash "$commit" --no-bundle --project-name language-manual |
| 28 | 31 | fi |