Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/buildpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ jobs:

mkdocs build --clean --site-dir "../docs/$name" -f "$mkdocs_file"
done

- name: Commit and push docs folder
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git add docs

if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Update built MkDocs documentation"
git push origin gh-pages
fi