Skip to content

Commit

Permalink
Try adding doc check into same deploy-docs doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ezmiller committed Mar 9, 2024
1 parent f84bb2a commit 454394d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ on:
concurrency: build-and-deploy-${{ github.ref }}

jobs:
check-for-doc-changes:
deploy-docs:
runs-on: ubuntu-latest
needs: check-for-doc-changes

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check for changes in docs folder
id: docs_check
run: |
Expand All @@ -25,16 +29,8 @@ jobs:
echo "docs_changed=false" >> $GITHUB_OUTPUT
fi
deploy-docs:
runs-on: ubuntu-latest
needs: check-for-doc-changes
if: needs.check-for-doc-changes.outputs.docs_changed == 'true'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy documentation
if: ${{ steps.docs_check.outputs.docs_changed == 'true' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
Expand Down

0 comments on commit 454394d

Please sign in to comment.