Merge pull request #184 from QGEP/2024-12-11-fix-ara-bauwerk-export-2… #19
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-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- 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 }} |