Files
TeleSec/.github/workflows/main.yml
2025-08-15 17:13:46 +02:00

49 lines
1.1 KiB
YAML

name: Build and publish
on:
push:
branches:
- main
tags:
- "v*.*.*"
jobs:
build-windows:
permissions:
contents: write
name: Build EXE
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: "Build Files"
run: "python3 build.py 'TeleSec para Windows'"
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: "3.11"
spec: "WinApp.spec"
requirements: "requirements.txt"
upload_exe_with_name: "TeleSec_Windows"
release:
needs:
- build-windows
name: Release via GHA
runs-on: ubuntu-latest
if: startsWith(github.ref_name, 'v')
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: TeleSec_Windows
- uses: ncipollo/release-action@v1
with:
artifacts: "TeleSec para Windows.exe"
prerelease: true
allowUpdates: true
omitBodyDuringUpdate: true
omitPrereleaseDuringUpdate: true