Skip to content

[FIX] make sure that build in docker use the proper version tag #137

[FIX] make sure that build in docker use the proper version tag

[FIX] make sure that build in docker use the proper version tag #137

Workflow file for this run

---
name: Packaging
on:
push:
branches:
- main
tags:
- '*'
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install build
run: python -m pip install build
- name: Build sdist and wheel
run: python -m build
- name: Upload to PyPI (on tags)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}