This repository was archived by the owner on Aug 29, 2024. It is now read-only.
Commit aa76b14 1 parent 8611dbe commit aa76b14 Copy full SHA for aa76b14
File tree 2 files changed +58
-2
lines changed
2 files changed +58
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Host dev scripts with Pages
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ workflow_dispatch :
8
+
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ concurrency :
15
+ group : pages
16
+ cancel-in-progress : false
17
+
18
+ jobs :
19
+ # Build job
20
+ build :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : Checkout
24
+ uses : actions/checkout@v4
25
+ - name : Setup Node
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : current
29
+ cache : pnpm
30
+ - uses : pnpm/action-setup@v3
31
+ with :
32
+ version : 8
33
+ - name : Setup Pages
34
+ uses : actions/configure-pages@v4
35
+ - name : Install dependencies
36
+ run : pnpm install
37
+ - name : Build with Vite
38
+ run : |
39
+ pnpm build
40
+ touch dist/.nojekyll
41
+ - name : Upload artifact
42
+ uses : actions/upload-pages-artifact@v3
43
+ with :
44
+ path : dist
45
+
46
+ deploy :
47
+ environment :
48
+ name : github-pages
49
+ url : ${{ steps.deployment.outputs.page_url }}
50
+ needs : build
51
+ runs-on : ubuntu-latest
52
+ name : Deploy
53
+ steps :
54
+ - name : Deploy to GitHub Pages
55
+ id : deployment
56
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 9
9
publish-npm :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v3
13
- - uses : actions/setup-node@v3
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-node@v4
14
14
with :
15
15
node-version : current
16
16
registry-url : https://registry.npmjs.org/
You can’t perform that action at this time.
0 commit comments