Skip to content

Commit

Permalink
Created deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnonrdp committed Aug 3, 2023
1 parent 3095790 commit b2606e7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to Cloudflare Workers

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: Install dependencies
run: npm install
- name: Publish
uses: cloudflare/wrangler-action@2.0.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages publish --project-name=sparkling-paper-3924

0 comments on commit b2606e7

Please sign in to comment.