From 0bdc49f49337af3acca244de8f55bec53f95fe22 Mon Sep 17 00:00:00 2001 From: Soxoj Date: Wed, 4 Dec 2024 00:42:55 +0100 Subject: [PATCH] Workflow to update PyInstaller Windows binary each commit in main and dev --- .github/workflows/pyinstaller.yml | 34 +++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index e7c97e3..c2961cb 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -10,13 +10,39 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: PyInstaller Windows + - name: Checkout + uses: actions/checkout@v4 + + - name: PyInstaller Windows Build uses: JackMcKew/pyinstaller-action-windows@main with: path: pyinstaller - - uses: actions/upload-artifact@v4 + - name: PyInstaller Binary Upload + uses: actions/upload-artifact@v4 with: name: maigret_standalone_win32 - path: pyinstaller/dist/windows # or path/to/artifact + path: pyinstaller/dist/windows + + - name: Create New Release + uses: actions/create-release@v1 + id: create_release + with: + draft: false + prerelease: true + release_name: Windows Release ${{ github.ref }} + tag_name: ${{ github.ref }} + body: | + This is a development release, tag ${{ github.ref }}. + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Upload PyInstaller Binary + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: pyinstaller/dist/windows + asset_name: maigret_standalone_win32 + asset_content_type: application/zip \ No newline at end of file