Skip to content

Commit

Permalink
Fix publish package workflow (#74)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
utgwkk authored May 4, 2023
1 parent 0bf8cc7 commit 85be59e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.7
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.11'

- name: Install dependencies for build
run: pip install --upgrade setuptools wheel
run: pip install --upgrade setuptools build

- name: Build
run: python setup.py sdist bdist_wheel
run: python -m build

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

0 comments on commit 85be59e

Please sign in to comment.