From 8e72d7d8aa5b5f5ccae056073571fecf40b75484 Mon Sep 17 00:00:00 2001 From: David Paul Graham <43794491+dpgraham4401@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:28:36 -0400 Subject: [PATCH] test-build-docs workflow (#1628) --- .github/workflows/test_docs_build.yaml | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test_docs_build.yaml diff --git a/.github/workflows/test_docs_build.yaml b/.github/workflows/test_docs_build.yaml new file mode 100644 index 00000000..6cc54925 --- /dev/null +++ b/.github/workflows/test_docs_build.yaml @@ -0,0 +1,38 @@ +name: "Test Docs Build" + +# This workflow builds and deploys the USEPA e-Manifest web service documentation +# It will only deploy to GitHub if the repo is 'USEPA/e-manifest' + +on: + pull_request: + branches: + - main + - master + paths: + - 'docs/**/*' + push: + paths: + - 'docs/**/*' + workflow_dispatch: + +env: + BOOK_DIRECTORY: ./docs + MDBOOK_VERSION: v0.4.37 + +jobs: + build_docs: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{ env.BOOK_DIRECTORY }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup mdBook + run: | + mkdir bin + curl -sSL https://github.com/rust-lang/mdBook/releases/download/${{env.MDBOOK_VERSION}}/mdbook-${{env.MDBOOK_VERSION}}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin + + - name: Build Documentation + run: bin/mdbook build