Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Update mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 20, 2023
1 parent 0b23812 commit f67c60d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check for changes in mkdocs.yml or docs folder
id: check_changes
run: |
if git diff-tree --name-only -r ${{ github.event.before }}^..${{ github.sha }} | grep -E 'mkdocs.yml|docs/'; then
echo "CHANGES=true" >> $GITHUB_ENV
else
echo "CHANGES=false" >> $GITHUB_ENV
fi
- name: Install dependencies (if needed)
if: env.CHANGES == 'true'
- name: Install dependencies
run: pip install mkdocs-material

- name: Deploy (if needed)
if: env.CHANGES == 'true'
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force

0 comments on commit f67c60d

Please sign in to comment.