CI: add Python package build
Some checks failed
/ test (push) Successful in 25s
/ build (push) Failing after 4s

This commit is contained in:
phil 2024-12-06 05:04:39 +01:00
parent 48507cc01c
commit ffd3e99ecc

View file

@ -72,16 +72,6 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
run: sed "s/0.0.0/${VERSION}/" -i pyproject.toml
- name: Build python package
if: fromJSON(steps.builder.outputs.run)
run: uv build --wheel
- name: Publish Python package (home)
if: fromJSON(steps.builder.outputs.run)
env:
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
- name: Workaround for bug of podman-login
if: fromJSON(steps.builder.outputs.run)
run: |
@ -117,3 +107,18 @@ jobs:
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
image: treetrail-backend
tags: ${{ steps.version.outputs.version }}
- name: Install uv
uses: astral-sh/setup-uv@4
with:
version: "0.5.5"
- name: Build python package
if: fromJSON(steps.builder.outputs.run)
run: uv build --wheel
- name: Publish Python package (home)
if: fromJSON(steps.builder.outputs.run)
env:
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN