| ... | @@ -21,8 +21,11 @@ if [ -n "$BUILDKITE" ]; then | ... | @@ -21,8 +21,11 @@ if [ -n "$BUILDKITE" ]; then |
| 21 | rm -fr zig-out/site | 21 | rm -fr zig-out/site |
| 22 | mkdir zig-out/site | 22 | mkdir zig-out/site |
| 23 | cp zig-out/package/README.html zig-out/site/index.html | 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 | CLOUDFLARE_API_TOKEN=$(buildkite-agent secret get CLOUDFLARE_API_TOKEN) \ | 28 | CLOUDFLARE_API_TOKEN=$(buildkite-agent secret get CLOUDFLARE_API_TOKEN) \ |
| 26 | CLOUDFLARE_ACCOUNT_ID=$(buildkite-agent secret get CLOUDFLARE_ACCOUNT_ID) \ | 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 | fi | 31 | fi |