Skip to content

v0.3.0

v0.3.0 #89

Workflow file for this run

name: Publish Release to PyPI
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
# See: https://github.com/pypa/gh-action-pypi-publish#trusted-publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python ubuntu-latest
uses: actions/setup-python@v4
with:
python-version: '3.9' # Should always be the minimum supported Python version
cache: 'pip'
cache-dependency-path': 'requirements.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install hatch
- name: Build with hatch
run: |
hatch build --clean
- name: upload release to PyPI
uses: pypa/gh-action-pypi-publish@release/v1