-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 917 Bytes
/
deploy.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
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: Cloudflare Prod
url: https://tildas-tonies.de
name: Deploy
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Replace IDs in wrangler.toml
uses: falnyr/replace-env-vars-action@master
env:
CLOUDFLARE_KV_ID: ${{ secrets.CLOUDFLARE_KV_ID }}
with:
filename: ./workers/wrangler.toml
- name: Deploy backend
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: deploy
workingDirectory: workers
- name: Deploy frontend
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy pages --project-name=tildas-tonies