Skip to content

Commit 3c1bfe3

Browse files
author
alexej
committed
Zip artifact for release so
that the users who download it wont get windows security warning, caused by the MotW (Mark of the Web) flag.
1 parent 6b85a56 commit 3c1bfe3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build_windows.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,30 @@ jobs:
4141
run: pyinstaller --onefile --windowed --name NodeGraphEditor main.py # Passe den Pfad zu main.py an, falls noetig
4242

4343
# Release erstellen (nur bei Tag-Builds)
44+
- name: Zip EXE for Release
45+
if: startsWith(github.ref, 'refs/tags/')
46+
uses: vimtor/action-zip@v1.2
47+
with:
48+
files: dist/NodeGraphEditor.exe
49+
dest: dist/NodeGraphEditor.zip
50+
4451
- name: Create Release
4552
if: startsWith(github.ref, 'refs/tags/')
46-
uses: softprops/action-gh-release@v2
4753
id: create_release
54+
uses: softprops/action-gh-release@v2
4855
with:
4956
tag_name: ${{ github.ref_name }}
5057
name: Release ${{ github.ref_name }}
5158
draft: false
5259
prerelease: false
53-
files: dist/NodeGraphEditor.exe # Pfad zur EXE, die hochgeladen werden soll
60+
files: dist/NodeGraphEditor.zip # Pfad zur EXE, die hochgeladen werden soll
5461
env:
5562
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5663

5764
- name: Save built .exe as artifact
58-
# Speichert die gebaute .exe Datei, damit du sie als Workflow-Artifact herunterladen kannst (zus\u00e4tzlich zur Release).
65+
# Speichert die gebaute .exe Datei, damit du sie als Workflow-Artifact herunterladen kannst (zusätzlich zur Release).
5966
uses: actions/upload-artifact@v4
6067
with:
61-
name: NodeGraphEditor-windows
68+
name: NodeGraphEditor-win
6269
path: dist/NodeGraphEditor.exe
6370
retention-days: 5

0 commit comments

Comments
 (0)