Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 779237a + 048ca30 commit de36264Copy full SHA for de36264
1 file changed
.github/workflows/release.yml
@@ -9,23 +9,29 @@ on:
9
10
jobs:
11
deploy:
12
-
+ environment: pypi
13
runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ id-token: write
17
18
steps:
19
- uses: actions/checkout@v6
20
+
21
- name: Set up Python
22
uses: actions/setup-python@v6
23
with:
24
python-version: '3.x'
25
26
- name: Install dependencies
27
run: |
28
python -m pip install --upgrade pip
- python -m pip install build twine
- - name: Build and publish
- env:
- TWINE_USERNAME: __token__
- TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
29
+ python -m pip install build
30
31
+ - name: Build package
32
33
python -m build
- twine upload dist/*
34
35
+ - name: Publish package distributions to PyPI
36
+ uses: pypa/gh-action-pypi-publish@release/v1
37
0 commit comments