Automated update of documentation #88
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: CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install sphinx | |
- name: Build documentation | |
run: sphinx-build -b html docs/source docs/build | |
- name: Commit changes | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add docs/build | |
git commit -m "Automated update of documentation" | |
git push https://x-access-token:${{ secrets.CLASSICAL_PAT }}@github.com/${{ github.repository }}.git | |
env: | |
GITHUB_TOKEN: ${{ secrets.CLASSICAL_PAT }} |