From e10d747bd73604697212a222bfee9ce38eac7f05 Mon Sep 17 00:00:00 2001 From: eatyourpeas Date: Sun, 22 Dec 2024 20:36:02 +0000 Subject: [PATCH] change build dir --- .github/workflows/main_rcpch-nhs-organisations.yml | 14 +++----------- documentation/mkdocs.yml | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main_rcpch-nhs-organisations.yml b/.github/workflows/main_rcpch-nhs-organisations.yml index 8394483..e6c6b03 100644 --- a/.github/workflows/main_rcpch-nhs-organisations.yml +++ b/.github/workflows/main_rcpch-nhs-organisations.yml @@ -54,18 +54,13 @@ jobs: pip install mkdocs mkdocs-material mkdocs-git-committers-plugin-2 mkdocs-git-revision-date-localized-plugin mkdocs-macros-plugin mkdocs-with-pdf - name: Build MkDocs site - env: - SITE_DIR: ./site run: mkdocs build --config-file documentation/mkdocs.yml - - name: Debug MkDocs build output - run: ls -la ./site - - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./site + publish_dir: ../staticdocs deploy-mkdocs-only: if: github.event.pull_request.merged == true && contains(github.event.pull_request.title, '[docs]') @@ -85,15 +80,12 @@ jobs: - name: Build MkDocs site env: - SITE_DIR: ./site + SITE_DIR: ../staticdocs DOCS_URL: https://rcpch.github.io/rcpch-nhs-organisations/ run: mkdocs build --config-file documentation/mkdocs.yml - - name: Debug MkDocs build output - run: ls -la ./site - - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./site + publish_dir: ../staticdocs diff --git a/documentation/mkdocs.yml b/documentation/mkdocs.yml index b741862..54e065c 100644 --- a/documentation/mkdocs.yml +++ b/documentation/mkdocs.yml @@ -16,7 +16,7 @@ edit_uri: blob/development/documentation/docs dev_addr: "0.0.0.0:8004" # Specifies the destination directory in which to build the static site -site_dir: !ENV SITE_DIR +site_dir: ../staticdocs # theme settings, fonts, colours theme: