Files
TeleSec/.github/workflows/windows-agent-release.yml
2026-03-03 10:24:12 +01:00

47 lines
1.2 KiB
YAML

name: Build Windows Agent (Release)
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
build-windows-agent:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build hidden EXE with PyInstaller
shell: bash
run: |
cd python_sdk ; pyinstaller --noconfirm --clean --onefile --noconsole --hidden-import=telesec_couchdb --name telesec-windows-agent windows_agent.py
- name: Upload workflow artifact
uses: actions/upload-artifact@v4
with:
name: telesec-windows-agent
path: python_sdk/dist/telesec-windows-agent.exe
- name: Upload asset to GitHub Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: python_sdk/dist/telesec-windows-agent.exe