MORE DEBUG PT.2
All checks were successful
Deploy to Cloudflare Workers / deploy (push) Successful in 56s

This commit is contained in:
Satria 2026-03-19 22:34:14 +07:00
commit 0bc46f4625

View file

@ -11,6 +11,18 @@ jobs:
container: container:
image: oven/bun:latest image: oven/bun:latest
steps: steps:
- name: Install system dependencies
run: |
apt-get update
apt-get install -y ca-certificates curl
- name: Test network connectivity
run: |
echo "--- Testing DNS resolution ---"
bun -e "const r = await fetch('https://api.cloudflare.com/client/v4/'); console.log(r.status, await r.text().then(t => t.slice(0, 200)))" || echo "Bun fetch failed"
echo "--- Testing with curl ---"
curl -sf -o /dev/null -w "HTTP %{http_code} to api.cloudflare.com\n" https://api.cloudflare.com/client/v4/ || echo "curl to Cloudflare API failed!"
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -26,24 +38,6 @@ jobs:
ls -la .svelte-kit/cloudflare/ || echo "ERROR: .svelte-kit/cloudflare/ does not exist!" 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!" 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 - name: Deploy to Cloudflare Workers
timeout-minutes: 10 timeout-minutes: 10
run: | run: |