File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 12
12
release :
13
13
types : [published]
14
14
15
- permissions :
16
- contents : read
17
-
18
15
jobs :
19
16
deploy :
20
17
@@ -23,17 +20,18 @@ jobs:
23
20
steps :
24
21
- uses : actions/checkout@v3
25
22
- name : Set up Python
26
- uses : actions/setup-python@v3
23
+ uses : actions/setup-python@v5
27
24
with :
28
25
python-version : ' 3.x'
29
26
- name : Install dependencies
30
27
run : |
31
28
python -m pip install --upgrade pip
32
- pip install build
33
- - name : Build package
34
- run : python -m build
35
- - name : Publish package
36
- uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37
- with :
38
- user : __token__
39
- password : ${{ secrets.PYPI_API_TOKEN }}
29
+ pip install setuptools wheel twine
30
+ - name : Build and publish
31
+ env :
32
+ TWINE_USERNAME : __token__
33
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
34
+ run : |
35
+ git fetch --all --tags
36
+ python setup.py sdist bdist_wheel
37
+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments