Skip to content

Merge pull request #83 from chrishavlin/cfxr_coord_disamb #10

Merge pull request #83 from chrishavlin/cfxr_coord_disamb

Merge pull request #83 from chrishavlin/cfxr_coord_disamb #10

Workflow file for this run

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Publish distributions to PyPI
jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- 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
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*