-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 907 Bytes
/
build.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: Build
on:
push:
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
deployments: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: latest
run_install: true
- name: Build
run: pnpm build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: b1c3d1b89f9131a84a0f1f6a973232f1
projectName: hermes
directory: .svelte-kit/cloudflare
gitHubToken: ${{ secrets.GITHUB_TOKEN }}