1 parent
b81e86b640
commit
b86ae38b03
8 files changed
+393
-2
No files matched your search
@@ -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/*
|
||||
Reference in new issue
Block a user