-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 877 Bytes
/
deploy.yaml
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
40
41
42
43
44
45
46
47
name: Deploy to s0u7a.net via Cloudflare Pages
on:
push:
pull_request:
permissions:
contents: read
jobs:
Setup:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install deps
run: bun i
Build:
needs: Setup
runs-on: ubuntu-latest
steps:
- name: Build on Bun
continue-on-error: true
run: bun run build
- name: show dir info
run: |
pwd
ls
Deploy:
needs: Build
runs-on: ubuntu-latest
steps:
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages deploy dist --project-name=astro-s0u7adotnet