6 Commits

Author SHA1 Message Date
Yannik Schmidt
7f608019ed fix: install requirements & only build tags 2025-04-17 11:26:44 +02:00
Yannik Schmidt
839efae1a3 fix: use single line command because of windows 2025-04-17 11:10:31 +02:00
Yannik Schmidt
36e5cc3842 fix: indent for release job 2025-04-17 11:05:36 +02:00
Yannik Schmidt
5ab17e6f4c fix: use native gh commands instead of release action 2025-04-17 11:04:43 +02:00
Yannik Schmidt
2e5676d5a6 fix: move release.yaml to workflows 2025-04-17 10:50:51 +02:00
Yannik Schmidt
a2702d7f70 feat: github release & build 2025-04-17 10:48:49 +02:00

36
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Build and Release EXE
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build EXE
run: pyinstaller -F client.py
- name: Archive EXE
run: Compress-Archive -Path dist\ -DestinationPath release.zip
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${{ github.ref_name }} "release.zip" --generate-notes --title "release-${{ github.ref_name }}"