File tree 1 file changed +15
-22
lines changed
1 file changed +15
-22
lines changed Original file line number Diff line number Diff line change 4
4
release :
5
5
types : [published]
6
6
7
+ permissions :
8
+ contents : read
9
+
7
10
jobs :
8
- pypi-publish :
11
+ deploy :
9
12
name : Upload release to PyPI
10
13
runs-on : ubuntu-latest
11
14
environment : release
12
-
15
+
13
16
steps :
14
17
- uses : actions/checkout@v3
15
18
- name : Set up Python
16
- uses : actions/setup-python@v4
19
+ uses : actions/setup-python@v3
17
20
with :
18
- python-version : " 3.x"
19
-
20
- - name : Install pypa/build
21
- run : >-
22
- python3 -m
23
- pip install
24
- build
25
- --user
26
- - name : Build a binary wheel and a source tarball
27
- run : >-
28
- python3 -m
29
- build
30
- --sdist
31
- --wheel
32
- --outdir dist/
33
- .
34
-
35
- - name : Publish distribution to PyPI
21
+ python-version : ' 3.x'
22
+ - name : Install dependencies
23
+ run : |
24
+ python -m pip install --upgrade pip
25
+ pip install build
26
+ - name : Build package
27
+ run : python -m build --sdist
28
+ - name : Publish package
36
29
37
30
with :
38
- password : ${{ secrets.PYPI_API_TOKEN }}
31
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments