Make basic package
Publish package / publish (push) Successful in 13s

This commit is contained in:
stilobique committed 2026-10-30 18:25:58 +01:00
1 parent b81e86b640
commit b86ae38b03
8 files changed
+393 -2

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
name: Publish package
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Build package
run: ~/.local/bin/uv build
- name: Publish to the Gitea package registry
env:
TWINE_USERNAME: ${{ secrets.PACKAGE_PUBLISH_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PACKAGE_PUBLISH_TOKEN }}
run: |
~/.local/bin/uv tool install twine
~/.local/bin/twine upload \
--repository-url "${{ github.server_url }}/api/packages/${{ github.repository_owner }}/pypi" \
dist/*