Skip to content

Commit cc57357

Browse files
authored
atualiza método de upload da package (#20)
Arquivo antigo usava a API legacy. Esse novo usa a api nova.
1 parent 7ea160d commit cc57357

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
31

42
name: Upload Python Package
53

@@ -22,10 +20,11 @@ jobs:
2220
run: |
2321
python -m pip install --upgrade pip
2422
pip install setuptools wheel twine
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
23+
- name: Build
2924
run: |
3025
python setup.py sdist bdist_wheel
31-
twine upload dist/*
26+
- name: pypi-publish
27+
uses: pypa/[email protected]
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)