We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pypa/gh-action-pypi-publish
1 parent f0f17b6 commit 0832a01Copy full SHA for 0832a01
1 file changed
.github/workflows/cd_pypi.yml
@@ -10,20 +10,27 @@ jobs:
10
11
runs-on: ubuntu-latest
12
13
+ environment:
14
+ name: pypi
15
+ url: https://pypi.org/project/ipinfo
16
+
17
+ permissions:
18
+ id-token: write
19
20
steps:
- - uses: actions/checkout@v3
21
+ - name: Checkout
22
+ uses: actions/checkout@v3
23
24
- name: Set up Python
25
uses: actions/setup-python@v4
26
with:
27
python-version: '3.10'
28
29
- name: Install dependencies
30
run: pip install -r requirements.txt
31
32
- name: Build package
33
run: python setup.py sdist bdist_wheel
34
35
- name: Publish package
- run: |
- pip install twine
- twine upload dist/*
- env:
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
36
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments