File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy static content to 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 :
20
+ name : 🏗️ Build
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : Checkout repo
24
+ uses : actions/checkout@v4.1.1
25
+ - name : Setup pnpm
26
+ uses : pnpm/action-setup@v3.0.0
27
+ with :
28
+ version : 8.15.5
29
+
30
+ - name : Setup Node
31
+ uses : actions/setup-node@v4.0.2
32
+ with :
33
+ node-version-file : " .nvmrc"
34
+ cache : pnpm
35
+
36
+ - name : Install dependencies
37
+ run : pnpm install
38
+ - name : Run build
39
+ run : pnpm build:docs
40
+ deploy :
41
+ environment :
42
+ name : github-pages
43
+ url : ${{ steps.deployment.outputs.page_url }}
44
+ runs-on : ubuntu-latest
45
+ needs : build
46
+ steps :
47
+ - name : Checkout
48
+ uses : actions/checkout@v4.1.1
49
+ - name : Setup Pages
50
+ uses : actions/configure-pages@v4
51
+ - name : Upload artifact
52
+ uses : actions/upload-pages-artifact@v3
53
+ with :
54
+ path : " ./packages/web/dist"
55
+ - name : Deploy to GitHub Pages
56
+ id : deployment
57
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11
11
"test" : " vitest" ,
12
12
"test:coverage" : " vitest --coverage" ,
13
13
"build" : " pnpm --filter mobygames build" ,
14
+ "build:docs" : " pnpm --filter mobygames-docs build" ,
14
15
"publish-packages" : " pnpm run build && changeset publish"
15
16
},
16
17
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments