Skip to content

Commit

Permalink
Fix publish process (#91)
Browse files Browse the repository at this point in the history
* Fix publish process

* Fix publish process

* Fix doc base url
  • Loading branch information
mpppk authored Sep 8, 2024
1 parent eb8091b commit caed65a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Deploy doc to GitHub Pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -29,15 +28,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/configure-pages@v5
- run: npm --prefix docs ci
- run: npm --prefix docs run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "build"
path: "docs/build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config: Config = {
url: "https://your-docusaurus-site.example.com",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
baseUrl: "/typed-api-spec",

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

0 comments on commit caed65a

Please sign in to comment.