Skip to content

Commit

Permalink
Fix workflow (#22)
Browse files Browse the repository at this point in the history
* revert: node version

* ci: fix workflow for cf wrangler

* ci: change env names
  • Loading branch information
BearTS authored Nov 2, 2023
1 parent e711a01 commit d8028f2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/workers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ jobs:
- run: yarn generate

- name: Publish to Cloudflare Workers Sites
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: deploy --env production
run: |
mkdir -p ~/.wrangler/config/
echo "api_token=\"${CLOUDFLARE_API_TOKEN}\"" > ~/.wrangler/config/default.toml
yarn wrangler publish --env production
env:
SECRETS_ENC_KEY: ${{ secrets.SECRETS_ENC_KEY }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_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 d8028f2

Please sign in to comment.