Skip to content

Commit

Permalink
ajsut build package condition
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Dec 12, 2023
1 parent 4c8a8a6 commit dfce8a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
build_publish_package:
runs-on: 'ubuntu-latest'
needs: tests
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4

Expand All @@ -52,13 +53,11 @@ jobs:
python-version: '3'

- name: Build Python package
if: github.event_name == 'release'
run: >
PYTHESINT_RELEASE="${{ github.ref_name }}"
python setup.py sdist bdist_wheel
- name: Publish Python package
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
# Storing the PyPI URL in the repositories' secrets makes
Expand Down

0 comments on commit dfce8a0

Please sign in to comment.