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

Commit

Permalink
Create mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 20, 2023
1 parent 65061fa commit c04f8c3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: MkDocs Deploy

on:
push:
branches:
- main
- dev

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

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

- name: Deploy (if needed)
if: steps.check_changes.outputs.changes == 'true'
run: mkdocs gh-deploy --force

0 comments on commit c04f8c3

Please sign in to comment.