mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 48c9363f6c | |||
| db69eaa290 | |||
| 3e6cad63f0 | |||
| 0ab12d95d8 | |||
| b26a711ace | |||
| 94e1e8e22e | |||
| 0e77ee47b4 | |||
| 003247453b | |||
| 373f40dee8 | |||
| dd485e8d9c | |||
| a57f9734a1 | |||
| 0bdc49f493 |
@@ -6,17 +6,65 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- name: PyInstaller Windows
|
uses: actions/checkout@v4
|
||||||
uses: JackMcKew/pyinstaller-action-windows@main
|
|
||||||
with:
|
|
||||||
path: pyinstaller
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- name: TEST PyInstaller Windows Build
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "test" > maigret_standalone_win32
|
||||||
|
|
||||||
|
- name: TEST Upload PyInstaller Binary to Workflow as Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: maigret_standalone_win32
|
name: maigret_standalone_win32
|
||||||
path: pyinstaller/dist/windows # or path/to/artifact
|
path: maigret_standalone_win32
|
||||||
|
|
||||||
|
# - name: PyInstaller Windows Build
|
||||||
|
# uses: JackMcKew/pyinstaller-action-windows@main
|
||||||
|
# with:
|
||||||
|
# path: pyinstaller
|
||||||
|
|
||||||
|
# - name: Upload PyInstaller Binary to Workflow as Artifact
|
||||||
|
# uses: actions/upload-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: maigret_standalone_win32
|
||||||
|
# path: pyinstaller/dist/windows
|
||||||
|
|
||||||
|
- name: Download PyInstaller Binary
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: maigret_standalone_win32
|
||||||
|
|
||||||
|
- name: Remove Previous Release
|
||||||
|
uses: liudonghua123/delete-release-action@v1
|
||||||
|
with:
|
||||||
|
release_name: Windows Release ${{ github.ref_name }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Create New Release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
id: create_release
|
||||||
|
with:
|
||||||
|
draft: false
|
||||||
|
prerelease: true
|
||||||
|
release_name: Windows Release [${{ github.ref_name }}]
|
||||||
|
tag_name: ${{ github.ref_name }}-${{ github.run_number }}
|
||||||
|
body: |
|
||||||
|
This is a development release, built from the branch **${{ github.ref_name }}**.
|
||||||
|
Download the attached file "maigret_standalone_win32.zip" to get the Windows executable.
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Upload PyInstaller Binary to Release
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./maigret_standalone_win32
|
||||||
|
asset_name: maigret_standalone_win32
|
||||||
|
asset_content_type: application/zip
|
||||||
Reference in New Issue
Block a user