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.

(cherry picked from commit 0428065)
  • Loading branch information
PProfizi committed Oct 19, 2023
1 parent 219c5c8 commit 5bb22c4
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 @@ -14,14 +14,13 @@ 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:
fileName: "*.whl"
tarBall: true
zipBall: true
tarBall: false
zipBall: false
out-file-path: "assets"
extract: false
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -37,7 +36,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 5bb22c4

Please sign in to comment.