Skip to content

Commit 4d432dd

Browse files
committed
update base
1 parent 7944949 commit 4d432dd

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: GenUI Book CI/CD
1+
name: GenUI CI/CD
22

33
on:
44
push:
55
branches: [main]
6-
pull_request:
7-
branches: [main]
86

97
workflow_dispatch:
108

@@ -16,6 +14,7 @@ permissions:
1614
concurrency:
1715
group: pages
1816
cancel-in-progress: false
17+
1918
jobs:
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 }}
@@ -58,4 +55,4 @@ jobs:
5855
steps:
5956
- name: Deploy to GitHub Pages
6057
id: deployment
61-
uses: actions/deploy-pages@v4
58+
uses: actions/deploy-pages@v4

rspress.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineConfig } from "rspress/config";
33
import alignImage from "rspress-plugin-align-image";
44

55
export default defineConfig({
6+
base:"/genui/",
67
root: path.join(__dirname, "docs"),
78
title: "GenUI Book",
89
description: "A book for GenUI",

0 commit comments

Comments
 (0)