Personal Telegram developer console for GitHub

ci: sync Cloudflare READ credentials for runtime

davoodmehraban89 committed Oct 4, 2026 at 23:36 UTC 9d72a6b70efefab8918479935b1aa97f960b5012
1 file changed +10
.github/workflows/deploy.yml
+10
@@ -42,6 +42,16 @@ jobs:
42 test -n "$CLOUDFLARE_API_TOKEN" || { echo "::error::Missing CLOUDFLARE_API_TOKEN repository secret"; exit 1; }
43 test -n "$CLOUDFLARE_ACCOUNT_ID" || { echo "::error::Missing CLOUDFLARE_ACCOUNT_ID repository secret"; exit 1; }
44
45 + - name: Sync Cloudflare runtime READ credentials
46 + env:
47 + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
48 + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
49 + shell: bash
50 + run: |
51 + set -euo pipefail
52 + printf '%s' "$CLOUDFLARE_API_TOKEN" | npx --yes wrangler@4 secret put CLOUDFLARE_API_TOKEN
53 + printf '%s' "$CLOUDFLARE_ACCOUNT_ID" | npx --yes wrangler@4 secret put CLOUDFLARE_ACCOUNT_ID
54 +
55 - name: Deploy verified commit to Cloudflare Workers
56 env:
57 CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}