Skip to content

Commit caed65a

Browse files
authored
Fix publish process (#91)
* Fix publish process * Fix publish process * Fix doc base url
1 parent eb8091b commit caed65a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/doc.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: Deploy doc to GitHub Pages
32

43
on:
54
# Runs on pushes targeting the default branch
@@ -29,15 +28,15 @@ jobs:
2928
url: ${{ steps.deployment.outputs.page_url }}
3029
runs-on: ubuntu-latest
3130
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v4
34-
- name: Setup Pages
35-
uses: actions/configure-pages@v5
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
- uses: actions/configure-pages@v5
34+
- run: npm --prefix docs ci
35+
- run: npm --prefix docs run build
3636
- name: Upload artifact
3737
uses: actions/upload-pages-artifact@v3
3838
with:
39-
# Upload entire repository
40-
path: "build"
39+
path: "docs/build"
4140
- name: Deploy to GitHub Pages
4241
id: deployment
4342
uses: actions/deploy-pages@v4

docs/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const config: Config = {
1212
url: "https://your-docusaurus-site.example.com",
1313
// Set the /<baseUrl>/ pathname under which your site is served
1414
// For GitHub pages deployment, it is often '/<projectName>/'
15-
baseUrl: "/",
15+
baseUrl: "/typed-api-spec",
1616

1717
// GitHub pages deployment config.
1818
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)