Skip to content

Merge pull request #286 from HERA-Team/switch-to-matvis #9

Merge pull request #286 from HERA-Team/switch-to-matvis

Merge pull request #286 from HERA-Team/switch-to-matvis #9

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
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
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]
with:
user: __token__
password: ${{ secrets.pypi_password }}