Merge pull request #136 from QGEP/poa_update_ubuntu #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |