Skip to content

Commit

Permalink
Automate deployment (#18)
Browse files Browse the repository at this point in the history
## Summary

Automates Workers deployment
  • Loading branch information
neekolas authored Mar 21, 2024
1 parent b52d4f2 commit 1dfaf40
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
env:
SKIP_YARN_COREPACK_CHECK: '1'

- name: Install Yarn v3
run: |
corepack enable
corepack prepare
- name: Install dependencies
run: yarn
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
packageManager: yarn
apiToken: ${{ secrets.WORKERS_TOKEN }}
workingDirectory: examples/workers

0 comments on commit 1dfaf40

Please sign in to comment.