Skip to content

Commit

Permalink
test-build-docs workflow (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 authored Sep 6, 2024
1 parent e062281 commit 8e72d7d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test_docs_build.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e72d7d

Please sign in to comment.