Bladeren bron

Add docs path filter for github action.

master
Savorboard 3 jaren geleden
bovenliggende
commit
437bef6598
1 gewijzigde bestanden met toevoegingen van 12 en 12 verwijderingen
  1. +12
    -12
      .github/workflows/deploy-to-gh-pages.yml

+ 12
- 12
.github/workflows/deploy-to-gh-pages.yml Bestand weergeven

@@ -9,7 +9,12 @@ jobs:
outputs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: dorny/paths-filter@v2
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Check for changes 🎯
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
@@ -21,14 +26,9 @@ jobs:
if: ${{ needs.changes.outputs.docs == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Deploy docs 🚀
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
CONFIG_FILE: docs/mkdocs.yml
- name: Deploy docs 🚀
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
CONFIG_FILE: docs/mkdocs.yml

Laden…
Annuleren
Opslaan