Skip to content

v0.1.27

v0.1.27 #8

Workflow file for this run

name: Publish
on:
release:
types:
- published
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/${{ vars.PACKAGE_NAME }}
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
# Set up Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ vars.PYTHON_VERSION }}
# Install dependencies
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt
# Verify the version
- name: Verify version
run: hatch version
# Build packages
- name: Build package distributions
run: |
python -m build
# Publish packages to PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1