Skip to content

Commit

Permalink
fix workflow secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
BearTS committed Nov 2, 2023
1 parent d8028f2 commit 5b54db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/workers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
- name: Publish to Cloudflare Workers Sites
run: |
mkdir -p ~/.wrangler/config/
echo "api_token=\"${CLOUDFLARE_API_TOKEN}\"" > ~/.wrangler/config/default.toml
echo "api_token=\"${CF_API_TOKEN}\"" > ~/.wrangler/config/default.toml
yarn wrangler publish --env production
env:
SECRETS_ENC_KEY: ${{ secrets.SECRETS_ENC_KEY }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}

0 comments on commit 5b54db9

Please sign in to comment.