Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f79b53

Browse files
committed
Fix wrongly rebased code
1 parent becbad4 commit 2f79b53

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Upload Python Package
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
66

77
jobs:
88
deploy:
@@ -14,15 +14,17 @@ jobs:
1414
uses: actions/setup-python@v4
1515
with:
1616
python-version: '3.x'
17+
cache: pip
18+
cache-dependency-path: pyproject.toml
1719
- name: Install dependencies
1820
run: |
19-
python -m pip install --user --upgrade setuptools wheel
21+
python -m pip install --upgrade build
2022
- name: Build
2123
run: |
22-
python setup.py sdist bdist_wheel
24+
python -m build
2325
- name: Publish distribution 📦 to PyPI
2426
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
2628
with:
2729
user: __token__
2830
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)