Skip to content

Commit 437bef6

Browse files
committed
Add docs path filter for github action.
1 parent fc3583c commit 437bef6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/deploy-to-gh-pages.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ jobs:
99
outputs:
1010
docs: ${{ steps.filter.outputs.docs }}
1111
steps:
12-
- uses: dorny/paths-filter@v2
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
16+
- name: Check for changes 🎯
17+
uses: dorny/paths-filter@v2
1318
id: filter
1419
with:
1520
filters: |
@@ -21,14 +26,9 @@ jobs:
2126
if: ${{ needs.changes.outputs.docs == 'true' }}
2227
runs-on: ubuntu-latest
2328
steps:
24-
- name: Checkout 🛎️
25-
uses: actions/checkout@v2
26-
with:
27-
persist-credentials: false
28-
29-
- name: Deploy docs 🚀
30-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
34-
CONFIG_FILE: docs/mkdocs.yml
29+
- name: Deploy docs 🚀
30+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
34+
CONFIG_FILE: docs/mkdocs.yml

0 commit comments

Comments
 (0)