From 8e7e895e7448887650089285ed61baedee09d9cb Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Wed, 8 Apr 2026 21:28:25 +0200 Subject: [PATCH] add build of python pachage --- .gitea/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/publish.yml diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..a830b89 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,28 @@ +name: Build & Publish Package + +on: + push: + tags: + - "v*.*.*" # triggers on version tags like v0.1.0, v1.2.3 + workflow_dispatch: # allows manual trigger from the Gitea UI + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Build package + run: uv build + + - name: Publish to Gitea + run: | + uv publish \ + --publish-url "${{ vars.REGISTRY_URL }}/api/packages/${{ github.repository_owner }}/pypi" \ + --username "${{ github.repository_owner }}" \ + --password "${{ secrets.ACTION_ACCESS_TOKEN }}"