diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb13ef6..d536303 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: command: publish --env production wranglerVersion: beta preCommands: | - wrangler kv:namespace create KV_STATUS_PAGE + wrangler kv:namespace create KV_STATUS_PAGE || echo "KV namespace already exists" apt-get update && apt-get install -y jq export KV_NAMESPACE_ID=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq -r ".[0].id") echo "[env.production]" >> wrangler.toml