Skip to content

Merge pull request #346 from HERA-Team/fix-for-release #13

Merge pull request #346 from HERA-Team/fix-for-release

Merge pull request #346 from HERA-Team/fix-for-release #13

Workflow file for this run

name: Publish Python distributions to PyPI
# The idea here is that you would make a Release via the web interface on github,
# and this automatically then publishes to pypi
on:
push:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build
run: pip install build
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Publish to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/[email protected]