Skip to content

Commit

Permalink
use a correct build procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
ElDavoo committed Aug 23, 2024
1 parent 2ac30aa commit 946a712
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
tests:
uses: ./.github/workflows/lint-test-coverage.yml
release:
needs:
- codeql
- tests
name: Create Release
runs-on: ubuntu-latest
steps:
Expand All @@ -27,6 +30,7 @@ jobs:
draft: false
prerelease: false
pypi-publish:
needs: release
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
Expand All @@ -43,10 +47,10 @@ jobs:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python -m pip install --upgrade pip build
pip install -r requirements.txt
- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 946a712

Please sign in to comment.