Update python-publish.yml

This commit is contained in:
curly60e 2024-07-23 19:12:57 -03:00 committed by GitHub
parent ba288ce39e
commit bb75f84c86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,37 +9,35 @@
name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: read
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check out the code
uses: actions/checkout@v3 # Actualizado a v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4 # Actualizado a v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
- name: Install DEP
run: poetry install
pip install six # Asegúrate de que `six` esté instalado
- name: Build the package
run: poetry build
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}