Skip to content

Commit

Permalink
update doc deployment trigger to run when chnages to the docs are mad…
Browse files Browse the repository at this point in the history
…e or changes to the GitHub Actions workflow. We also run the job that builds the docs on PR to test that the documentation will successfully build (#1592)
  • Loading branch information
dpgraham4401 authored Nov 28, 2023
1 parent a6c3b87 commit b692920
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: "e-Manifest Documentation"
name: "e-Manifest Services Docs"

# This workflow builds and deploys the USEPA e-Manifest documentation
# 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:
workflow_dispatch:
push:
branches:
- 'master'
paths:
- '.github/workflows/*'
- 'docs/*'
pull_request:
branches:
- 'master'
paths:
- '.github/workflows/*'
- 'docs/*'

permissions:
contents: read
Expand All @@ -17,7 +29,7 @@ concurrency:

env:
BOOK_DIRECTORY: ./docs
MDBOOK_VERSION: v0.4.25
MDBOOK_VERSION: v0.4.35

jobs:
build_docs:
Expand All @@ -43,7 +55,9 @@ jobs:
path: "${{ env.BOOK_DIRECTORY }}/book"

deploy_pages:
# if: github.repository == 'USEPA/e-manifest'
if: |
github.repository == 'USEPA/e-manifest' &&
(github.event_name == 'push' && github.head_ref == 'master')
needs: build_docs
environment:
name: github-pages
Expand Down

0 comments on commit b692920

Please sign in to comment.