Skip to content

Release v3.0.3

Release v3.0.3 #54

Workflow file for this run

name: Upload Python Package
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
# Allow one concurrent deployment
concurrency:
group: "python-publish"
cancel-in-progress: true
jobs:
python-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: python -m pip install --upgrade pip
- name: Run set_up_dev_environment.py
run: python scripts/set_up_dev_environment.py
- name: Build package
run: python scripts/build.py
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1