Skip to content

Build docummentation and updated README badges on new release #21

Build docummentation and updated README badges on new release

Build docummentation and updated README badges on new release #21

name: Build docummentation and updated README badges on new release
on:
release:
types: [published]
permissions:
contents: write
jobs:
release-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Download test resources
run: |
pip install requests
python ./tests/resources.py download
- name: Build documentation and update badges
run: |
python -m pip install --upgrade pip
pip install -r ./docs/requirements.txt
pip install .
python ./docs/build.py ${{ github.event.release.name }}
python ./docs/generate_readme_badges.py
- name: Commit updated documentation and badges
uses: "stefanzweifel /git-auto-commit-action@v5"
with:
commit_message: Documentation for version ${{ github.event.release.name }}
branch: main