From 4dd043f059cfac603dd671e891beb6a9b5d70d56 Mon Sep 17 00:00:00 2001 From: Teo Koon Peng Date: Wed, 3 Jul 2024 10:56:30 +0800 Subject: [PATCH] api-server: fix ghpages (#962) Signed-off-by: Teo Koon Peng --- .github/workflows/ghpages.yml | 7 ++++--- packages/api-server/scripts/docs_config.py | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index 75e51802c..37ece921b 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -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 @@ -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 @@ -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 diff --git a/packages/api-server/scripts/docs_config.py b/packages/api-server/scripts/docs_config.py index 41306534f..5b8c3a816 100644 --- a/packages/api-server/scripts/docs_config.py +++ b/packages/api-server/scripts/docs_config.py @@ -2,8 +2,6 @@ from api_server.default_config import config -here = os.path.dirname(__file__) - config.update( { "public_url": "/rmf-web",