From 1ecd480cc9b9cab273b8f9db65a660e85574d97f Mon Sep 17 00:00:00 2001 From: Ben Sully Date: Tue, 24 Sep 2024 07:44:56 +0100 Subject: [PATCH] fix: docs builds in CI (#829) --- .github/workflows/deploy-to-dev-portal-dev.yml | 6 ++++-- .github/workflows/deploy-to-dev-portal-prod.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-dev-portal-dev.yml b/.github/workflows/deploy-to-dev-portal-dev.yml index 9b55c89bf..6e2ea6b5b 100644 --- a/.github/workflows/deploy-to-dev-portal-dev.yml +++ b/.github/workflows/deploy-to-dev-portal-dev.yml @@ -36,7 +36,9 @@ jobs: - name: Build documentation website env: GTAG_CONTAINER_ID: ${{ secrets.GTAG_CONTAINER_ID }} - run: yarn docs:build --config docusaurus.config.devportal.js + run: | + cd ./docusaurus/website + yarn docs:build --config docusaurus.config.devportal.js - id: 'auth' uses: 'google-github-actions/auth@v1' @@ -47,4 +49,4 @@ jobs: with: path: './docusaurus/website/build/' destination: 'staging-developer-portal/scenes' - parent: false \ No newline at end of file + parent: false diff --git a/.github/workflows/deploy-to-dev-portal-prod.yml b/.github/workflows/deploy-to-dev-portal-prod.yml index 97bc8873b..dc43666b0 100644 --- a/.github/workflows/deploy-to-dev-portal-prod.yml +++ b/.github/workflows/deploy-to-dev-portal-prod.yml @@ -36,7 +36,9 @@ jobs: - name: Build documentation website env: GTAG_CONTAINER_ID: ${{ secrets.GTAG_CONTAINER_ID }} - run: yarn docs:build --config docusaurus.config.devportal.prod.js + run: | + cd ./docusaurus/website + yarn build --config docusaurus.config.devportal.prod.js - id: 'auth' uses: 'google-github-actions/auth@v1' @@ -47,4 +49,4 @@ jobs: with: path: './docusaurus/website/build/' destination: 'grafana-developer-portal/scenes' - parent: false \ No newline at end of file + parent: false