Update README.md #28
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 auto documentation | |
# On every merge to master | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
auto-doc: | |
# OS to run | |
runs-on: ubuntu-latest | |
steps: | |
# Validate every action | |
- uses: actions/checkout@v1 | |
- name: Setting up Python 3.7 & env vars | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
# Building autodocumentation | |
- name: Building auto documentation | |
uses: ammaraskar/sphinx-action@master | |
with: | |
docs-folder: "docs/" | |
- name: Commit changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ValBot" | |
git checkout origin/Documentation | |
git pull origin Documentation | |
git add --all | |
git reset -- .gitignore | |
git commit -m "Update documentation" | |
- name: Push Changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: Documentation | |
directory: docs | |
force: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} |