Skip to content

Commit c2e8ea7

Browse files
committed
ci: add token check + deploy log to build.yml
1 parent 175078d commit c2e8ea7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,18 @@ jobs:
7676
- uses: actions/setup-node@v4
7777
with:
7878
node-version: '20'
79+
- name: Check token
80+
run: |
81+
if [ -z "${{ secrets.CLOUDFLARE_API_TOKEN }}" ]; then
82+
echo "❌ CLOUDFLARE_API_TOKEN secret is not set! Skipping deploy."
83+
exit 1
84+
fi
85+
echo "✅ CLOUDFLARE_API_TOKEN is set, proceeding with deploy..."
7986
- name: Deploy Cloudflare Worker (after APK is live)
8087
env:
8188
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8289
run: |
8390
npm install -g wrangler
8491
cd cloudflare
8592
wrangler deploy
93+
echo "✅ Worker deployed successfully"

0 commit comments

Comments
 (0)