Skip to content

Merge pull request #115 from tlambert03/fix-attribute-default #153

Merge pull request #115 from tlambert03/fix-attribute-default

Merge pull request #115 from tlambert03/fix-attribute-default #153

Workflow file for this run

name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-latest
if:
startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install Hatch
run: |
pip install hatch==1.14.1
- name: Build package
run: |
hatch build
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}