Skip to content

Commit

Permalink
Merge pull request #12 from EPFL-ENAC/fix-gh-release
Browse files Browse the repository at this point in the history
Fix gh release
  • Loading branch information
ghiggi committed Mar 12, 2024
2 parents 85015f9 + 618773a commit 0d55c9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout source
Expand All @@ -34,12 +36,14 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Get Asset name
if: success() || failure()
run: |
export PKG=$(ls dist/ | grep tar)
set -- $PKG
echo "asset_name=$1" >> $GITHUB_ENV
- name: Create GitHub Release
if: success() || failure()
id: create_release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 0d55c9b

Please sign in to comment.