Skip to content

Commit

Permalink
Have pyinstaller set the filename
Browse files Browse the repository at this point in the history
Finding the output name didn't work on Windows
  • Loading branch information
RealOrangeOne committed Sep 8, 2023
1 parent 794c31a commit eb6dba9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ jobs:
python -m pip install --upgrade flit pyinstaller
flit install --deps=production
- name: Build executable
run: pyinstaller -F --strip heroku_audit/__main__.py --name heroku-audit --clean
- name: Get output name
run: echo "exe_name=$(basename ${{ github.workspace }}/dist/*)" >> $GITHUB_ENV
run: pyinstaller -F --strip heroku_audit/__main__.py --name heroku-audit-${{ matrix.os }} --clean
- name: Save executable
uses: actions/upload-artifact@v3
with:
Expand All @@ -63,9 +61,9 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/${{ env.exe_name }}
asset_name: heroku-audit-${{ matrix.os }}
file: dist/*
tag: ${{ github.ref }}
file_glob: true
overwrite: true

build:
Expand Down

0 comments on commit eb6dba9

Please sign in to comment.