Workflow to update PyInstaller Windows binary each commit in main and dev

This commit is contained in:
Soxoj
2024-12-04 00:42:55 +01:00
parent 1cb25946dd
commit 0bdc49f493
+30 -4
View File
@@ -10,13 +10,39 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
- name: PyInstaller Windows uses: actions/checkout@v4
- name: PyInstaller Windows Build
uses: JackMcKew/pyinstaller-action-windows@main uses: JackMcKew/pyinstaller-action-windows@main
with: with:
path: pyinstaller path: pyinstaller
- uses: actions/upload-artifact@v4 - name: PyInstaller Binary Upload
uses: actions/upload-artifact@v4
with: with:
name: maigret_standalone_win32 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