-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) 路 985 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
35
36
37
38
39
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install
run: pnpm install
env:
KIRBY_BASE_URL: ${{ secrets.KIRBY_BASE_URL }}
KIRBY_API_TOKEN: ${{ secrets.KIRBY_API_TOKEN }}
- name: Build
run: pnpm run build
env:
NITRO_PRERENDER_PAGES: true
NITRO_PRESET: cloudflare_pages
KIRBY_BASE_URL: ${{ secrets.KIRBY_BASE_URL }}
KIRBY_API_TOKEN: ${{ secrets.KIRBY_API_TOKEN }}
- name: Deploy to Cloudflare
run: npx wrangler pages deploy dist/ --project-name=cacao-kit
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}