From eb035f12865dbb47fd385a04bda8a2c6aba0b5e4 Mon Sep 17 00:00:00 2001 From: Ben Millar Date: Sat, 12 Oct 2024 01:27:48 +0100 Subject: [PATCH] Rever to v3 of tech-docs-github-pages --- .github/workflows/publish-documentation.yml | 5 +++-- docs/makefile | 12 +++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml index e749085..10cbf3a 100644 --- a/.github/workflows/publish-documentation.yml +++ b/.github/workflows/publish-documentation.yml @@ -17,7 +17,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ministryofjustice/tech-docs-github-pages-publisher:v4.0.0 + image: ministryofjustice/tech-docs-github-pages-publisher:v3 permissions: contents: read steps: @@ -37,7 +37,7 @@ jobs: rm -rf docs - name: Compile Markdown to HTML and create artifact run: | - /usr/local/bin/package + /scripts/deploy.sh - name: Upload artifact to be published uses: actions/upload-artifact@v4 with: @@ -70,6 +70,7 @@ jobs: uses: actions/download-artifact@v4 with: name: github-pages + path: github-pages - name: Unpack files and check URL links run: | cd github-pages diff --git a/docs/makefile b/docs/makefile index f6e0701..4b1c4de 100644 --- a/docs/makefile +++ b/docs/makefile @@ -1,4 +1,4 @@ -IMAGE := ministryofjustice/tech-docs-github-pages-publisher:v4.0.0 +IMAGE := ministryofjustice/tech-docs-github-pages-publisher:v3 # Use this to run a local instance of the documentation site, while editing .PHONY: preview check @@ -8,10 +8,16 @@ preview: -v $$(pwd)/config:/app/config \ -v $$(pwd)/source:/app/source \ -p 4567:4567 \ - -it $(IMAGE) /usr/local/bin/preview + -it $(IMAGE) /scripts/preview.sh deploy: docker run --rm \ -v $$(pwd)/config:/app/config \ -v $$(pwd)/source:/app/source \ - -it $(IMAGE) /usr/local/bin/package + -it $(IMAGE) /scripts/deploy.sh + +check: + docker run --rm \ + -v $$(pwd)/config:/app/config \ + -v $$(pwd)/source:/app/source \ + -it $(IMAGE) /scripts/check-url-links.sh \ No newline at end of file