File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : general
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout Repo
17+ uses : actions/checkout@v5
18+ - name : Setup Pnpm
19+ uses : pnpm/action-setup@v4
20+ - name : Setup Node
21+ uses : actions/setup-node@v4
22+ with :
23+ cache : pnpm
24+ node-version-file : package.json
25+ - name : Install Dependencies
26+ run : pnpm install:ci
27+ - name : Run Tests
28+ run : pnpm test
29+
30+ deploy :
31+ runs-on : ubuntu-latest
32+ if : github.event_name == 'push'
33+
34+ environment :
35+ name : github-pages
36+ url : ${{ steps.deployment.outputs.page_url }}
37+
38+ permissions :
39+ id-token : write
40+ pages : write
41+
42+ steps :
43+ - name : Checkout Repo
44+ uses : actions/checkout@v5
45+ - name : Setup Pnpm
46+ uses : pnpm/action-setup@v4
47+ - name : Setup Node
48+ uses : actions/setup-node@v4
49+ with :
50+ cache : pnpm
51+ node-version-file : package.json
52+ - name : Install Dependencies
53+ run : pnpm install:ci
54+ - name : Build Site
55+ run : pnpm build
56+ - name : Upload Site
57+ uses : actions/upload-pages-artifact@v3
58+ with :
59+ path : build/client
60+ - name : Deploy Site
61+ id : deployment
62+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments