authorchloe caruso <git@paperclover.net> 2024-09-11 23:14:18-07:00
committerchloe caruso <git@paperclover.net> 2024-09-11 23:14:18-07:00
log5aa61b184fe1500707e632aad732bdad792fab93
tree30b52286cc452efd8c88636d1521624586abcda2
parent1ab2438977eb48782460a8016cce84d2f57e67f2

chore(ci): set pages deployment branch

cloudflare requires main for production

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

ci+5-2
...@@ -21,8 +21,11 @@ if [ -n "$BUILDKITE" ]; then...@@ -21,8 +21,11 @@ if [ -n "$BUILDKITE" ]; 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
2424 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-manual30 npx wrangler pages deploy zig-out/site --branch "$branch" --commit-hash "$commit" --no-bundle --project-name language-manual
28fi31fi