Skip to content

Commit

Permalink
workflows: update
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekpunetha committed Dec 14, 2024
1 parent a0b8e3f commit 13e45b2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy-to-cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ jobs:
- name: Publish to Cloudflare Workers Sites
run: |
echo "prefix = \"${HOME}\"" > ~/.npmrc
npm install -g @cloudflare/wrangler
mkdir -p ~/.wrangler/config/
echo "api_token=\"${CF_API_TOKEN}\"" > ~/.wrangler/config/default.toml
~/bin/wrangler publish
npm install -g wrangler@latest
wrangler deploy
- name: Setup Wrangler
- name: Setup Wrangler
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
Expand Down

0 comments on commit 13e45b2

Please sign in to comment.