CI: add Python package build
This commit is contained in:
parent
48507cc01c
commit
ffd3e99ecc
1 changed files with 15 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue