Skip to content

Commit 2042a69

Browse files
committed
docs: Only build and upload when files change (on master)
1 parent aea34df commit 2042a69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
run: |
1919
git config --global user.name 'travis-ci'
2020
git config --global user.email 'travis@nowhere.edu'
21+
2122
- name: Filter changed file paths to outputs
2223
uses: dorny/paths-filter@v2.7.0
2324
id: changes
@@ -32,9 +33,11 @@ jobs:
3233
- 'examples/**'
3334
python_files:
3435
- 'tmuxp/**'
36+
3537
- name: Should publish
3638
if: steps.changes.outputs.docs == 'true' || steps.changes.outputs.root_docs == 'true' || steps.changes.outputs.python_files == 'true'
3739
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
40+
3841
- name: Set up Python ${{ matrix.python-version }}
3942
uses: actions/setup-python@v1
4043
with:

0 commit comments

Comments
 (0)