Compare commits

...

15 Commits

Author SHA1 Message Date
Soxoj 9c4ae21465 Trying to remove by tag 2024-12-04 01:29:24 +01:00
Soxoj 20e32772b4 Repeat the release 2024-12-04 01:27:50 +01:00
Soxoj 042f053bb7 Repeat the build 2024-12-04 01:25:40 +01:00
Soxoj 48c9363f6c Unique release 2024-12-04 01:23:53 +01:00
Soxoj db69eaa290 Update name again 2024-12-04 01:22:30 +01:00
Soxoj 3e6cad63f0 Revert full release name 2024-12-04 01:21:14 +01:00
Soxoj 0ab12d95d8 Added GitHub token 2024-12-04 01:19:52 +01:00
Soxoj b26a711ace Remove release by tag 2024-12-04 01:17:59 +01:00
Soxoj 94e1e8e22e Remove another release 2024-12-04 01:16:47 +01:00
Soxoj 0e77ee47b4 Remove old release 2024-12-04 01:15:26 +01:00
Soxoj 003247453b Merge steps in one 2024-12-04 01:11:49 +01:00
Soxoj 373f40dee8 Syntax fix 2024-12-04 01:10:09 +01:00
Soxoj dd485e8d9c Test steps, some fixes 2024-12-04 01:07:54 +01:00
Soxoj a57f9734a1 Updated step names and ref tags 2024-12-04 00:51:53 +01:00
Soxoj 0bdc49f493 Workflow to update PyInstaller Windows binary each commit in main and dev 2024-12-04 00:42:55 +01:00
+59 -9
View File
@@ -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: liudonghua123/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