Skip to content

Commit

Permalink
Remove criterion on v tag on branch calling the releaser.yml (#1231)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
PProfizi authored Oct 19, 2023
1 parent 85e80b0 commit 0428065
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ jobs:
with:
files: |
./**/*.whl
./**/*.tar.gz
./**/*.zip
draft: true
generate_release_notes: true
6 changes: 2 additions & 4 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ jobs:
Publish_to_PyPI:
name: "Publish Release to PyPI"
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: "Download Release Assets"
uses: robinraju/release-downloader@v1.8
with:
tag: ${{ github.event.inputs.release_tag || 'latest' }}
fileName: "*.whl"
tarBall: true
zipBall: true
tarBall: false
zipBall: false
out-file-path: "assets"
extract: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -49,7 +48,6 @@ jobs:
upload_docs_release:
name: "Upload stable documentation"
needs: [Publish_to_PyPI]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: "Download Release Asset - HTML"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ jobs:
id: wheelhouse
run: |
export wheel_name=${{ steps.wheel.outputs.wheel_name }}
export version=${wheel_name:15:5}
export IFS='-'
read -a strarr <<< $wheel_name
export version="${strarr[1]}"
export name=ansys-dpf-core-v$version-wheelhouse-${{ runner.os }}-${{ matrix.python-version }}.zip
echo "name=${name}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 0428065

Please sign in to comment.