workflows for version and build #1
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 Sysmon Builder | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - 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 application | |
| run: | | |
| pyinstaller --noconfirm --windowed --onedir --name sysmon-builder main.py | |
| - name: Archive Linux build | |
| if: runner.os == 'Linux' | |
| run: | | |
| cd dist | |
| tar -czf sysmon-builder-linux.tar.gz sysmon-builder | |
| - name: Archive Windows build | |
| if: runner.os == 'Windows' | |
| run: | | |
| powershell Compress-Archive -Path dist\sysmon-builder -DestinationPath dist\sysmon-builder-windows.zip | |
| - name: Upload Linux artifact | |
| if: runner.os == 'Linux' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sysmon-builder-linux | |
| path: dist/sysmon-builder-linux.tar.gz | |
| - name: Upload Windows artifact | |
| if: runner.os == 'Windows' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sysmon-builder-windows | |
| path: dist/sysmon-builder-windows.zip | |
| - name: Create GitHub Release and upload Linux asset | |
| if: runner.os == 'Linux' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/sysmon-builder-linux.tar.gz | |
| - name: Upload Windows asset to GitHub Release | |
| if: runner.os == 'Windows' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/sysmon-builder-windows.zip |