feature: agrego workflow para subir paquete a pypi
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Publish to PyPI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Publish-to-PyPI:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: "Set up Python"
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v8
|
||||
|
||||
- name: Bump version
|
||||
run: |
|
||||
uv run git-flow tag --token=$GITEA_TOKEN
|
||||
|
||||
- name: Build and publish
|
||||
run: |
|
||||
uv build
|
||||
uv publish --token=$PYPI_TOKEN
|
||||
Reference in New Issue
Block a user