seperate windows and linux #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install PySide6 pyinstaller | |
| - name: Build Linux package | |
| run: | | |
| pyinstaller --noconfirm --windowed --onedir --name sysmon-builder main.py | |
| cd dist | |
| tar -czf sysmon-builder-linux.tar.gz sysmon-builder | |
| - name: Upload Linux artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sysmon-builder-linux | |
| path: dist/sysmon-builder-linux.tar.gz | |
| if-no-files-found: error | |
| - name: Upload Linux release asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/sysmon-builder-linux.tar.gz | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install PySide6 pyinstaller | |
| - name: Build Windows package | |
| run: | | |
| pyinstaller --noconfirm --windowed --onedir --name sysmon-builder main.py | |
| powershell Compress-Archive -Path dist\sysmon-builder -DestinationPath dist\sysmon-builder-windows.zip | |
| - name: Upload Windows artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sysmon-builder-windows | |
| path: dist/sysmon-builder-windows.zip | |
| if-no-files-found: error | |
| - name: Upload Windows release asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/sysmon-builder-windows.zip |