Skip to content

Commit 85be59e

Browse files
authored
Fix publish package workflow (#74)
* use Python 3.11 for deploy * install build * use build with build phase * use pypa/gh-action-pypi-publish@release/v1 * remove wheel explicit dependency
1 parent 0bf8cc7 commit 85be59e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: .github/workflows/deploy.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v3
1414

15-
- name: Set up Python 3.7
15+
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.7
18+
python-version: '3.11'
1919

2020
- name: Install dependencies for build
21-
run: pip install --upgrade setuptools wheel
21+
run: pip install --upgrade setuptools build
2222

2323
- name: Build
24-
run: python setup.py sdist bdist_wheel
24+
run: python -m build
2525

2626
- name: Publish package
27-
uses: pypa/gh-action-pypi-publish@master
27+
uses: pypa/gh-action-pypi-publish@release/v1
2828
with:
2929
user: __token__
3030
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)