File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1- name : GenUI Book CI/CD
1+ name : GenUI CI/CD
22
33on :
44 push :
55 branches : [main]
6- pull_request :
7- branches : [main]
86
97 workflow_dispatch :
108
@@ -16,6 +14,7 @@ permissions:
1614concurrency :
1715 group : pages
1816 cancel-in-progress : false
17+
1918jobs :
2019 # Build job
2120 build :
@@ -25,30 +24,28 @@ jobs:
2524 uses : actions/checkout@v4
2625 with :
2726 fetch-depth : 0 # Not needed if lastUpdated is not enabled
28- - uses : npm /action-setup@v3
27+ - uses : pnpm /action-setup@v3 # pnpm is optional but recommended, you can also use npm / yarn
2928 with :
3029 version : 8
3130 - name : Setup Node
3231 uses : actions/setup-node@v4
3332 with :
3433 node-version : 20
35- cache : npm
34+ cache : pnpm
3635 - name : Setup Pages
3736 uses : actions/configure-pages@v5
38- if : github.repository_owner == 'privoce'
3937 - name : Install dependencies
40- run : npm install
38+ run : pnpm install
4139 - name : Build with Rspress
4240 run : |
43- npm run build
41+ pnpm run build
4442 - name : Upload artifact
4543 uses : actions/upload-pages-artifact@v3
4644 with :
4745 path : doc_build
4846
4947 # Deployment job
5048 deploy :
51- if : github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
5249 environment :
5350 name : github-pages
5451 url : ${{ steps.deployment.outputs.page_url }}
5855 steps :
5956 - name : Deploy to GitHub Pages
6057 id : deployment
61- uses : actions/deploy-pages@v4
58+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { defineConfig } from "rspress/config";
33import alignImage from "rspress-plugin-align-image" ;
44
55export default defineConfig ( {
6+ base :"/genui/" ,
67 root : path . join ( __dirname , "docs" ) ,
78 title : "GenUI Book" ,
89 description : "A book for GenUI" ,
You can’t perform that action at this time.
0 commit comments