forked from headmin/swiftDialog-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 766 Bytes
/
deploy.yml
File metadata and controls
35 lines (29 loc) · 766 Bytes
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
name: Deploy to Cloudflare Pages
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'pnpm'
- name: Install and Build
run: |
pnpm install --frozen-lockfile
pnpm run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: '06c249641147be697ea25874c8b83670'
projectName: 'dialog-docs'
directory: 'dist'
branch: main