Merge pull request 'added script to publish python package' (#1) from add-publish-CI-pipeline into main
Python Code Quality / python-code-quality (push) Successful in 10s
Python Test / python-test (push) Successful in 12s
Publish Python Package / build-and-publish (push) Failing after 9s

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-01-08 08:42:11 +01:00
+35
View File
@@ -0,0 +1,35 @@
# Gitea Actions workflow to build and publish Python package to Gitea Package Registry
name: Publish Python Package
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install uv
run: pip install uv
- name: Build package
run: |
uv sync --no-dev
uv build
- name: Publish to Gitea Package Registry
env:
UV_PUBLISH_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
UV_PUBLISH_URL: ${{ vars.REPOSITORY_URL }}
run: |
uv publish