File tree Expand file tree Collapse file tree 1 file changed +23
-18
lines changed Expand file tree Collapse file tree 1 file changed +23
-18
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
11
upload :
12
+
9
13
runs-on : ubuntu-latest
14
+
10
15
steps :
11
- - uses : actions/checkout@v2
12
- - name : Set up Python
13
- uses : actions/setup-python@v2
14
- with :
15
- python-version : " 3.7 "
16
- - name : Install dependencies
17
- run : |
18
- python -m pip install --upgrade pip
19
- python -m pip install setuptools wheel twine
20
- - name : Package project
21
- run : |
22
- python setup.py sdist bdist_wheel
23
- - name : Upload distributions
24
- env :
25
- TWINE_USERNAME : __token__
26
- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
27
- run : |
28
- twine upload dist/*
16
+ - uses : actions/checkout@v3
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : ' 3.11 '
21
+ - name : Install dependencies
22
+ run : |
23
+ python -m pip install --upgrade pip
24
+ python -m pip install setuptools wheel twine
25
+ - name : Package project
26
+ run : |
27
+ python setup.py sdist bdist_wheel
28
+ - name : Upload distributions
29
+ env :
30
+ TWINE_USERNAME : __token__
31
+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
32
+ run : |
33
+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments