From 465ab2d3e42f482da0c53f27e03f4e1c0e3679a5 Mon Sep 17 00:00:00 2001 From: Roi Talpaz <2651169+fokolo@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:52:01 +0200 Subject: [PATCH] fixed github action Update deploy.yml Update deploy.yml Update deploy.yml update deloy.yml update ci Update docusaurus.config.ts --- .github/workflows/deploy.yml | 11 +++++++---- .github/workflows/test-deploy.yml | 9 ++++++--- docs/site/docusaurus.config.ts | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7cdc9bd0f..f9c14d1fd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,17 +16,20 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - cache: yarn + cache: npm + cache-dependency-path: docs/site/package-lock.json - name: Install dependencies - run: yarn install --frozen-lockfile + working-directory: docs/site + run: npm ci - name: Build website - run: yarn build + working-directory: docs/site + run: npm run build - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3 with: - path: build + path: docs/site/build deploy: name: Deploy to GitHub Pages diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 2ae03a8d4..7c4b0adb6 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -16,9 +16,12 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - cache: yarn + cache: npm + cache-dependency-path: docs/site/package-lock.json - name: Install dependencies - run: yarn install --frozen-lockfile + working-directory: docs/site + run: npm ci - name: Test build website - run: yarn build + working-directory: docs/site + run: npm run build diff --git a/docs/site/docusaurus.config.ts b/docs/site/docusaurus.config.ts index 592ceb120..14411470d 100644 --- a/docs/site/docusaurus.config.ts +++ b/docs/site/docusaurus.config.ts @@ -8,7 +8,7 @@ const config: Config = { favicon: "img/icon.svg", url: "https://backstage-plugin.getport.io/", - baseUrl: "/", + baseUrl: "/backstage-plugin/", organizationName: "port-labs", projectName: "backstage-plugin",