-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe15c2e
commit 9b5d21a
Showing
1 changed file
with
8 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
||
|