build(deps): bump the versions group with 5 updates (#24) #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy material mkdocs to gh-pages | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
check_gradle_files_change: | |
name: "Check docs files changed" | |
runs-on: ubuntu-latest | |
outputs: | |
DOCS_FILES_CHANGED: ${{ steps.docs_changed.outputs.any_changed }} | |
steps: | |
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4 | |
with: | |
submodules: 'recursive' | |
- name: Check that docs changed | |
id: docs_changed | |
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.2 | |
with: | |
files: | | |
docs/** | |
mkdocs.yml | |
deploy: | |
needs: [ check_gradle_files_change ] | |
if: needs.check_gradle_files_change.outputs.GRADLE_FILES_CHANGED == 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: pip install mkdocs-material | |
- run: pip install mkdocs-minify-plugin | |
- run: mkdocs gh-deploy --force |