Skip to content

Commit

Permalink
update pip action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andreatramacere committed Apr 17, 2024
1 parent fe15c2e commit 9b5d21a
Showing 1 changed file with 8 additions and 27 deletions.
35 changes: 8 additions & 27 deletions .github/workflows/test-pip-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,15 @@ jobs:
pytest --disable-warnings --pyargs -vvv jetset.tests.test_jet_model
- name: Upload SDist
if: matrix.cibw_python == 'cp39*' && matrix.os=='ubuntu-latest'
if: matrix.cibw_python == 'cp39*' && matrix.os=='ubuntu-latest' && github.event.inputs.tags != null
uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz


#- name: Upload Release Asset sdist
# if: matrix.cibw_python == 'cp39*'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# run: gh release upload ${{ github.event.inputs.tags }} dist/*.tar.gz --clobber


- name: 'Upload Src Release Asset'
if: matrix.cibw_python == 'cp39*'
if: matrix.cibw_python == 'cp39*' && github.event.inputs.tags != null
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.event.inputs.tags }}
Expand All @@ -132,15 +126,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- uses: actions/checkout@v4

- uses: actions/checkout@v4
if: github.event.inputs.git-ref != ''
if: github.event.inputs.git-ref != '' && github.event.inputs.tags != null
with:
ref: ${{ github.event.inputs.git-ref }}

- uses: pypa/[email protected]
if: github.event.inputs.tags != null && github.event.inputs.tags != null
env:
CIBW_SKIP: "*-musllinux_*"
CIBW_BUILD: ${{ matrix.cibw_python }}
Expand Down Expand Up @@ -168,12 +160,14 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
if: github.event.inputs.tags != null
with:
overwrite: true
path: wheelhouse/*.whl

- name: 'Upload Binary Release Asset'
uses: softprops/action-gh-release@v2
if: github.event.inputs.tags != null
with:
name: Release ${{ github.event.inputs.tags }}
prerelease: true
Expand All @@ -183,17 +177,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

#- name: Upload Release Asset whl
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run:
# gh release upload ${{ github.event.inputs.tags }} wheelhouse/*.whl --clobber

#- name: Upload Release Asset whl tag
# if: github.event.inputs.git-ref != ''
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run:
# gh release upload ${{ github.event.inputs.git-ref }} wheelhouse/*.whl --clobber



0 comments on commit 9b5d21a

Please sign in to comment.