File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Upload Python Package
2
2
3
3
on :
4
4
release :
5
- types : [created ]
5
+ types : [published ]
6
6
7
7
jobs :
8
8
deploy :
@@ -14,15 +14,17 @@ jobs:
14
14
uses : actions/setup-python@v4
15
15
with :
16
16
python-version : ' 3.x'
17
+ cache : pip
18
+ cache-dependency-path : pyproject.toml
17
19
- name : Install dependencies
18
20
run : |
19
- python -m pip install --user -- upgrade setuptools wheel
21
+ python -m pip install --upgrade build
20
22
- name : Build
21
23
run : |
22
- python setup.py sdist bdist_wheel
24
+ python -m build
23
25
- name : Publish distribution 📦 to PyPI
24
26
if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
25
- uses : pypa/gh-action-pypi-publish@master
27
+ uses : pypa/gh-action-pypi-publish@release/v1
26
28
with :
27
29
user : __token__
28
30
password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments