Skip to content

Release version 0.7.2 #33

Release version 0.7.2

Release version 0.7.2 #33

Workflow file for this run

name: Build and publish
on:
release:
types: [ published ]
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.x']
steps:
- name: Checkout the repository and the branch
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'
- name: Install the requirements
run: pip install -r requirements.txt && pip install setuptools~=65.5.1 mkdocs mkdocs-material
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Setup the GitHub user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Update the GitHub pages documentation
run: cd docs && mkdocs gh-deploy --force && cd ..
- name: Publish distribution package to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}