Skip to content

Merge pull request #137 from QGEP/poa_remove_bin_pg4.5.0 #17

Merge pull request #137 from QGEP/poa_remove_bin_pg4.5.0

Merge pull request #137 from QGEP/poa_remove_bin_pg4.5.0 #17

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 }}