Skip to content

Merge pull request #136 from QGEP/poa_update_ubuntu #16

Merge pull request #136 from QGEP/poa_update_ubuntu

Merge pull request #136 from QGEP/poa_update_ubuntu #16

name: Release to Pypi
on:
push:
tags:
- v*
jobs:
release-to-pypi:
name: Release to Pypi
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Inject version name
run: sed -i "s/999\.dev0/${GITHUB_REF##*/}/" setup.py
- name: Install pypa/build
run: pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --outdir dist/
- name: Publish distribution
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}