Skip to content

Commit 0428065

Browse files
authored
Remove criterion on v tag on branch calling the releaser.yml (#1231)
* Remove criterion on tag on branch calling the releaser.yml as it can be manually called from another branch * Fix wheelhouse naming * Do not look for a tarball to upload to the draft release as these are automatically generated by GH upon creation of the release. * Do not upload tarball and zip sources to PyPI as they are automatically generated by GH and are broken right now.
1 parent 85e80b0 commit 0428065

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/ci_release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ jobs:
208208
with:
209209
files: |
210210
./**/*.whl
211-
./**/*.tar.gz
212211
./**/*.zip
213212
draft: true
214213
generate_release_notes: true

.github/workflows/releaser.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ jobs:
2525
Publish_to_PyPI:
2626
name: "Publish Release to PyPI"
2727
runs-on: ubuntu-latest
28-
if: startsWith(github.ref, 'refs/tags/v')
2928
steps:
3029
- name: "Download Release Assets"
3130
uses: robinraju/[email protected]
3231
with:
3332
tag: ${{ github.event.inputs.release_tag || 'latest' }}
3433
fileName: "*.whl"
35-
tarBall: true
36-
zipBall: true
34+
tarBall: false
35+
zipBall: false
3736
out-file-path: "assets"
3837
extract: false
3938
token: ${{ secrets.GITHUB_TOKEN }}
@@ -49,7 +48,6 @@ jobs:
4948
upload_docs_release:
5049
name: "Upload stable documentation"
5150
needs: [Publish_to_PyPI]
52-
if: startsWith(github.ref, 'refs/tags/v')
5351
runs-on: ubuntu-latest
5452
steps:
5553
- name: "Download Release Asset - HTML"

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ jobs:
151151
id: wheelhouse
152152
run: |
153153
export wheel_name=${{ steps.wheel.outputs.wheel_name }}
154-
export version=${wheel_name:15:5}
154+
export IFS='-'
155+
read -a strarr <<< $wheel_name
156+
export version="${strarr[1]}"
155157
export name=ansys-dpf-core-v$version-wheelhouse-${{ runner.os }}-${{ matrix.python-version }}.zip
156158
echo "name=${name}" >> $GITHUB_OUTPUT
157159

0 commit comments

Comments
 (0)