Skip to content

Commit

Permalink
OKAY NOW
Browse files Browse the repository at this point in the history
  • Loading branch information
cesr authored Aug 20, 2024
1 parent ac7c61f commit 1b68125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Replace Account ID
run: |
sed 's/REPLACE_WITH_ACCOUNT_ID/${{ secrets.CF_ACCOUNT_ID }}/' wrangler.template.toml > wrangler.toml
- name: Install Latest Wrangler
run: npm install -g wrangler

- name: Publish to Cloudflare
run: wrangler deploy
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "llm-pricing-api"
account_id = "${CF_ACCOUNT_ID}"
account_id = "REPLACE_WITH_ACCOUNT_ID"
compatibility_date = "2023-01-01"
main = "worker.js"

Expand Down

0 comments on commit 1b68125

Please sign in to comment.