forked from heyxyz/hey
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1002 Bytes
/
deploy-workers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy cloudflare workers
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v3
- name: Setup pnpm 🌸
uses: pnpm/[email protected]
- name: Setup node 🍀
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Turborepo local server 🚀
uses: felixmosh/turborepo-gh-artifacts@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}
- name: Install 📦
run: pnpm install --frozen-lockfile
- name: Deploy 🚀
run: |
pnpm add wrangler -g
pnpm workers:deploy --api="${{ secrets.TURBO_SERVER }}" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="lenster"
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}