Skip to content

Commit

Permalink
Update make-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MayankFawkes authored Apr 30, 2021
1 parent 5cb3bb4 commit 5b5df0f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: PyInstaller Linux
uses: JackMcKew/pyinstaller-action-linux@main
with:
path: .

- name: PyInstaller Windows
uses: JackMcKew/pyinstaller-action-windows@main
with:
path: .

- name: Create Release
id: create_release
Expand All @@ -22,3 +32,23 @@ jobs:
body_path: ./release.md
draft: false
prerelease: false

- name: Upload linux file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/linux/transfer
asset_name: transfer
asset_content_type: application/octet-stream

- name: Upload windows file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/windows/transfer.exe
asset_name: transfer.exe
asset_content_type: application/octet-stream

0 comments on commit 5b5df0f

Please sign in to comment.