Skip to content

Merge pull request #34 from chrishavlin/release_prep_v0pt3pt0 #7

Merge pull request #34 from chrishavlin/release_prep_v0pt3pt0

Merge pull request #34 from chrishavlin/release_prep_v0pt3pt0 #7

Workflow file for this run

name: Publish distributions to PyPI
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -U build twine
- name: Build and check source tarball
run: python -m build
- name: Twine check
run: twine check dist/*
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}