Skip to content

Commit 8530640

Browse files
committed
chore: use direct twine upload in workflow
1 parent a9bca56 commit 8530640

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/publish-to-gpr.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install build
29-
30-
- name: List files for debugging
31-
run: ls -R
28+
pip install build twine
3229
3330
- name: Build package
3431
run: python -m build
3532

3633
- name: Publish package to GitHub Packages
37-
uses: pypa/gh-action-pypi-publish@release/v1
38-
with:
39-
user: __token__
40-
password: ${{ secrets.GITHUB_TOKEN }}
41-
repository_url: https://pypi.pkg.github.com/bnlnpps
34+
run: twine upload --repository-url https://pypi.pkg.github.com/bnlnpps dist/*
35+
env:
36+
TWINE_USERNAME: __token__
37+
TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)