File tree Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+
3
+ concurrency :
4
+ group : ' deploy'
5
+ cancel-in-progress : true
6
+
7
+ on :
8
+ push :
9
+ branches : [ "master" ]
10
+ workflow_dispatch :
11
+
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+
17
+ jobs :
18
+ deploy :
19
+ environment :
20
+ name : github-pages
21
+ url : ${{ steps.deployment.outputs.page_url }}
22
+ runs-on : ubuntu-latest
23
+ timeout-minutes : 5
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+
28
+ - uses : pnpm/action-setup@v4
29
+ name : Install pnpm
30
+ with :
31
+ run_install : false
32
+
33
+ - name : Setup Node
34
+ uses : actions/setup-node@v4
35
+ with :
36
+ node-version : 20
37
+ cache : ' pnpm'
38
+
39
+ - name : Get pnpm store directory
40
+ shell : bash
41
+ run : |
42
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
43
+
44
+ - uses : actions/cache@v4
45
+ name : Setup pnpm cache
46
+ with :
47
+ path : ${{ env.STORE_PATH }}
48
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49
+ restore-keys : |
50
+ ${{ runner.os }}-pnpm-store-
51
+
52
+ - name : Install dependencies
53
+ run : pnpm install --frozen-lockfile
54
+
55
+ - name : Build
56
+ run : pnpm build
57
+
58
+ - name : Setup Pages
59
+ uses : actions/configure-pages@v4
60
+
61
+ - name : Upload artifact
62
+ uses : actions/upload-pages-artifact@v3
63
+ with :
64
+ path : ' ./dist'
65
+
66
+ - name : Deploy to GitHub Pages
67
+ id : deployment
68
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 23
23
"@solidjs/router" : " ^0.13.5" ,
24
24
"solid-icons" : " ^1.1.0" ,
25
25
"solid-js" : " ^1.8.17"
26
- }
26
+ },
27
+ "packageManager" :
" [email protected] "
27
28
}
You can’t perform that action at this time.
0 commit comments