3.2.0 #118
Workflow file for this run
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: Release to PyPI | |
on: | |
release: | |
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release | |
types: [released, prereleased] | |
jobs: | |
release: | |
# Release to PyPI | |
name: Release on Pypi | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Set up Python | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: 'pyproject.toml' # Read the Python version from the pyproject.toml file | |
# Install Tools | |
- name: Install Tools | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade build | |
python -m pip install --upgrade setuptools wheel twine | |
# Package and Upload | |
- name: Package and Upload | |
env: | |
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }} | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} | |
run: | | |
python -m build | |
python -m twine upload dist/* |