Skip to content

Commit

Permalink
Enhance build workflow: Store wheel file name in GitHub environment f…
Browse files Browse the repository at this point in the history
…or later use
  • Loading branch information
royshil committed Nov 8, 2024
1 parent 38694b1 commit fe87629
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
run: |
pip install dist/*.whl
# store wheel name on github env for later use
echo "WHEEL_FILE=$(ls dist/*.whl)" >> $GITHUB_ENV
- name: Install built wheel Windows
if: startsWith(matrix.os, 'windows') == true
shell: pwsh
Expand All @@ -71,6 +74,9 @@ jobs:
Write-Output "Installing wheel file: $($wheelFile.FullName)"
pip install $wheelFile.FullName
# store wheel name on github env for later use
echo "WHEEL_FILE=$wheelFile.FullName" >> $env:GITHUB_ENV
- name: Test import
if: false
run: |
Expand All @@ -79,4 +85,5 @@ jobs:
- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: ${{ env.WHEEL_FILE }}
path: dist/*.whl

0 comments on commit fe87629

Please sign in to comment.