We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c7ebd4 commit b057c54Copy full SHA for b057c54
.github/workflows/publish.yml
@@ -42,8 +42,6 @@ jobs:
42
environment:
43
name: pypi
44
url: https://pypi.org/p/localportmanager
45
- permissions:
46
- id-token: write
47
48
steps:
49
- name: Download artifacts
@@ -52,8 +50,22 @@ jobs:
52
50
name: dist
53
51
path: dist/
54
55
- - name: Publish to PyPI
56
- uses: pypa/gh-action-pypi-publish@release/v1
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.11'
57
+
58
+ - name: Install twine
59
+ run: |
60
+ python -m pip install --upgrade pip
61
+ pip install twine
62
63
+ - name: Publish to PyPI using token
64
+ env:
65
+ TWINE_USERNAME: __token__
66
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
67
68
+ twine upload dist/* --skip-existing
69
70
publish-github:
71
needs: build
0 commit comments