mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bc8f23b005 | |||
| 9c4ae21465 | |||
| 20e32772b4 | |||
| 042f053bb7 | |||
| 48c9363f6c | |||
| db69eaa290 | |||
| 3e6cad63f0 | |||
| 0ab12d95d8 | |||
| b26a711ace | |||
| 94e1e8e22e | |||
| 0e77ee47b4 | |||
| 003247453b | |||
| 373f40dee8 | |||
| dd485e8d9c | |||
| a57f9734a1 | |||
| 0bdc49f493 |
@@ -6,17 +6,67 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: PyInstaller Windows
|
||||
uses: JackMcKew/pyinstaller-action-windows@main
|
||||
with:
|
||||
path: pyinstaller
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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:
|
||||
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: soxoj/delete-release-action@v1
|
||||
with:
|
||||
release_name: ${{ github.ref_name }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
# test change
|
||||
|
||||
- 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