MORE DEBUG
All checks were successful
Deploy to Cloudflare Workers / deploy (push) Successful in 37s
All checks were successful
Deploy to Cloudflare Workers / deploy (push) Successful in 37s
This commit is contained in:
parent
d443703722
commit
724a199756
1 changed files with 32 additions and 5 deletions
|
|
@ -20,12 +20,39 @@ jobs:
|
|||
- name: Build
|
||||
run: bun run build
|
||||
|
||||
- name: Deploy to Cloudflare Workers
|
||||
timeout-minutes: 10
|
||||
- name: Verify build output
|
||||
run: |
|
||||
ls -la
|
||||
pwd
|
||||
bunx wrangler deploy --config wrangler.jsonc 2>&1
|
||||
echo "--- Checking build output ---"
|
||||
ls -la .svelte-kit/cloudflare/ || echo "ERROR: .svelte-kit/cloudflare/ does not exist!"
|
||||
test -f .svelte-kit/cloudflare/_worker.js && echo "_worker.js exists" || echo "ERROR: _worker.js not found!"
|
||||
|
||||
- name: Verify secrets are set
|
||||
run: |
|
||||
if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
|
||||
echo "ERROR: CLOUDFLARE_API_TOKEN is empty or not set!"
|
||||
exit 1
|
||||
else
|
||||
echo "CLOUDFLARE_API_TOKEN is set (length: ${#CLOUDFLARE_API_TOKEN})"
|
||||
fi
|
||||
if [ -z "$CLOUDFLARE_ACCOUNT_ID" ]; then
|
||||
echo "ERROR: CLOUDFLARE_ACCOUNT_ID is empty or not set!"
|
||||
exit 1
|
||||
else
|
||||
echo "CLOUDFLARE_ACCOUNT_ID is set (length: ${#CLOUDFLARE_ACCOUNT_ID})"
|
||||
fi
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
|
||||
- name: Deploy to Cloudflare Workers
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
echo "--- Wrangler version ---"
|
||||
bunx wrangler --version
|
||||
echo "--- Starting deploy ---"
|
||||
bunx wrangler deploy --config wrangler.jsonc
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
WRANGLER_LOG: debug
|
||||
CI: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue