Skip to content

Merge pull request #184 from QGEP/2024-12-11-fix-ara-bauwerk-export-2… #19

Merge pull request #184 from QGEP/2024-12-11-fix-ara-bauwerk-export-2…

Merge pull request #184 from QGEP/2024-12-11-fix-ara-bauwerk-export-2… #19

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