Skip to content

Commit 5bb22c4

Browse files
committed
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. (cherry picked from commit 0428065)
1 parent 219c5c8 commit 5bb22c4

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
@@ -14,14 +14,13 @@ jobs:
1414
Publish_to_PyPI:
1515
name: "Publish Release to PyPI"
1616
runs-on: ubuntu-latest
17-
if: startsWith(github.ref, 'refs/tags/v')
1817
steps:
1918
- name: "Download Release Assets"
2019
uses: robinraju/[email protected]
2120
with:
2221
fileName: "*.whl"
23-
tarBall: true
24-
zipBall: true
22+
tarBall: false
23+
zipBall: false
2524
out-file-path: "assets"
2625
extract: false
2726
token: ${{ secrets.GITHUB_TOKEN }}
@@ -37,7 +36,6 @@ jobs:
3736
upload_docs_release:
3837
name: "Upload stable documentation"
3938
needs: [Publish_to_PyPI]
40-
if: startsWith(github.ref, 'refs/tags/v')
4139
runs-on: ubuntu-latest
4240
steps:
4341
- 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)