Skip to content

Commit

Permalink
this fucking sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcat101 committed Feb 2, 2024
1 parent 3e2ed78 commit c00c1f1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deployInstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,19 @@ jobs:
cd installer
pip install -r requirements.txt pyinstaller
pyinstaller pissmc-installer.spec
echo "FILE=pissmc-installer${{ steps.system-info.outputs.platform == 'win32' && '.exe' || '' }}" >> $GITHUB_ENV
- name: Get output filename
run: |
cd installer
echo "::set-output name=fragment::$(python -c "from os import listdir; print(listdir('dist')[0])")"
id: output_filename

- name: Upload assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: "installer/dist/${{ env.FILE }}"
asset_name: ${{ steps.system-info.outputs.platform }}-${{ env.FILE }}
asset_path: "installer/dist/${{ steps.output_filename.outputs.fragment }}"
asset_name: ${{ steps.system-info.outputs.platform }}-${{ steps.output_filename.outputs.fragment }}
asset_content_type: ${{ steps.system-info.outputs.platform == 'win32' && 'application/x-msdownload' || 'application/x-elf' }}

0 comments on commit c00c1f1

Please sign in to comment.