Skip to content

Commit

Permalink
Merge pull request #66 from rcpch:publish-dir
Browse files Browse the repository at this point in the history
[docs] Publish-dir
  • Loading branch information
eatyourpeas authored Dec 22, 2024
2 parents 887f7f7 + e10d747 commit 9776927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/main_rcpch-nhs-organisations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]')
Expand All @@ -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
2 changes: 1 addition & 1 deletion documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9776927

Please sign in to comment.