release a pypi package on gitea

This commit is contained in:
Andreas Wrede
2026-04-07 14:10:07 -04:00
parent 5edbaacf81
commit e4ecb8723f
+8 -1
View File
@@ -25,7 +25,7 @@ jobs:
- name: Install build tools
run: |
python -m pip install --upgrade pip
# pip install build twine
pip install build twine
- name: Build package
run: python -m build
@@ -34,6 +34,13 @@ jobs:
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Upload to Gitea PyPI registry
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --repository-url https://git.wrede.ca/api/packages/andreas/pypi dist/*
- name: Create release
uses: actions/gitea-release-action@v1
with: