Skip to content

Commit 64c7e2e

Browse files
Publish package to pypa
1 parent 7929c3e commit 64c7e2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to GitHub Packages
1+
name: Publish to PyPI
22

33
on:
44
workflow_dispatch:
@@ -25,8 +25,9 @@ jobs:
2525
run: |
2626
python -m build
2727
28-
- name: Publish to GitHub Packages
28+
- name: Publish to PyPI
2929
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
TWINE_USERNAME: __token__
31+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3132
run: |
32-
python -m twine upload --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --repository-url https://upload.pkg.github.com/${{ github.repository }}/ dist/*
33+
python -m twine upload dist/*

0 commit comments

Comments
 (0)