File tree 1 file changed +21
-15
lines changed
1 file changed +21
-15
lines changed Original file line number Diff line number Diff line change 8
8
- pypi-debug
9
9
10
10
jobs :
11
- deploy :
11
+ pypi-publish :
12
+ name : upload release to PyPI
12
13
runs-on : ubuntu-latest
14
+ environment : pypi
15
+ permissions :
16
+ id-token : write
13
17
steps :
14
- - uses : actions/checkout@v4
15
- - name : Set up Python
16
- uses : actions/setup-python@v5
17
- with :
18
- python-version : ' 3.9'
19
- - name : Install dependencies
20
- run : pip install --upgrade pip twine build
21
- - name : Build and publish
22
- env :
23
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
24
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
25
- run : |
26
- python -m build
27
- twine upload dist/*
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Set up Python
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version : ' 3.9'
24
+
25
+ - name : Install build tool
26
+ run : python -m pip install --upgrade build
27
+
28
+ - name : Build package
29
+ run : python -m build
30
+
31
+ - name : Publish package distributions to PyPI
32
+ uses : pypa/gh-action-pypi-publish@release/v1
33
+
You can’t perform that action at this time.
0 commit comments