Skip to content

Commit

Permalink
api-server: fix ghpages (#962)
Browse files Browse the repository at this point in the history
Signed-off-by: Teo Koon Peng <[email protected]>
  • Loading branch information
koonpeng authored Jul 3, 2024
1 parent 07f09ab commit 4dd043f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches: ["main"]
paths:
- ".github/workflows/ghpages.yml"
- "packages/api-server/**"

# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -33,14 +34,14 @@ jobs:
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
working-directory: packages/api-server
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- name: bootstrap
Expand All @@ -49,7 +50,7 @@ jobs:
package: api-server
- name: Extract docs
run: |
. /opt/rmf/install/setup.bash
. /opt/rmf/setup.bash
pnpm run generate-docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down
2 changes: 0 additions & 2 deletions packages/api-server/scripts/docs_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from api_server.default_config import config

here = os.path.dirname(__file__)

config.update(
{
"public_url": "/rmf-web",
Expand Down

0 comments on commit 4dd043f

Please sign in to comment.