Only deploy docs when docs have changed

This commit is contained in:
Christopher C. Wells 2022-11-02 21:09:46 -07:00
parent e51398aa4d
commit 2ae5a258a2
1 changed files with 7 additions and 0 deletions

View File

@ -45,7 +45,14 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v3
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v34
with:
files: |
docs/**
- name: Deploy docs
if: steps.changed-files.outputs.any_changed == 'true'
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.github_token }}