1- name : Release Sysmon Builder
1+ name : Release
22
33on :
44 push :
55 tags :
6- - " v*"
6+ - " v*.*.*"
7+
8+ permissions :
9+ contents : write
710
811jobs :
9- build :
10- strategy :
11- matrix :
12- os : [ubuntu-latest, windows-latest]
13- runs-on : ${{ matrix.os }}
12+ build-linux :
13+ runs-on : ubuntu-latest
1414
1515 steps :
16- - name : Checkout repository
17- uses : actions/checkout@v4
16+ - name : Checkout
17+ uses : actions/checkout@v5
1818
1919 - name : Set up Python
2020 uses : actions/setup-python@v5
@@ -26,43 +26,54 @@ jobs:
2626 python -m pip install --upgrade pip
2727 pip install PySide6 pyinstaller
2828
29- - name : Build application
29+ - name : Build Linux package
3030 run : |
3131 pyinstaller --noconfirm --windowed --onedir --name sysmon-builder main.py
32-
33- - name : Archive Linux build
34- if : runner.os == 'Linux'
35- run : |
3632 cd dist
3733 tar -czf sysmon-builder-linux.tar.gz sysmon-builder
3834
39- - name : Archive Windows build
40- if : runner.os == 'Windows'
41- run : |
42- powershell Compress-Archive -Path dist\sysmon-builder -DestinationPath dist\sysmon-builder-windows.zip
43-
4435 - name : Upload Linux artifact
45- if : runner.os == 'Linux'
4636 uses : actions/upload-artifact@v4
4737 with :
4838 name : sysmon-builder-linux
4939 path : dist/sysmon-builder-linux.tar.gz
40+ if-no-files-found : error
41+
42+ - name : Upload Linux release asset
43+ uses : softprops/action-gh-release@v2
44+ with :
45+ files : dist/sysmon-builder-linux.tar.gz
46+
47+ build-windows :
48+ runs-on : windows-latest
49+
50+ steps :
51+ - name : Checkout
52+ uses : actions/checkout@v5
53+
54+ - name : Set up Python
55+ uses : actions/setup-python@v5
56+ with :
57+ python-version : " 3.11"
58+
59+ - name : Install dependencies
60+ run : |
61+ python -m pip install --upgrade pip
62+ pip install PySide6 pyinstaller
63+
64+ - name : Build Windows package
65+ run : |
66+ pyinstaller --noconfirm --windowed --onedir --name sysmon-builder main.py
67+ powershell Compress-Archive -Path dist\sysmon-builder -DestinationPath dist\sysmon-builder-windows.zip
5068
5169 - name : Upload Windows artifact
52- if : runner.os == 'Windows'
5370 uses : actions/upload-artifact@v4
5471 with :
5572 name : sysmon-builder-windows
5673 path : dist/sysmon-builder-windows.zip
74+ if-no-files-found : error
5775
58- - name : Create GitHub Release and upload Linux asset
59- if : runner.os == 'Linux'
60- uses : softprops/action-gh-release@v2
61- with :
62- files : dist/sysmon-builder-linux.tar.gz
63-
64- - name : Upload Windows asset to GitHub Release
65- if : runner.os == 'Windows'
76+ - name : Upload Windows release asset
6677 uses : softprops/action-gh-release@v2
6778 with :
6879 files : dist/sysmon-builder-windows.zip
0 commit comments