fix: install requirements & only build tags

This commit is contained in:
Yannik Schmidt
2025-04-17 11:26:44 +02:00
parent 839efae1a3
commit 7f608019ed

View File

@@ -2,8 +2,8 @@ name: Build and Release EXE
on: on:
push: push:
branches: tags:
- master - '*'
jobs: jobs:
build: build:
@@ -22,9 +22,10 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyinstaller pip install pyinstaller
pip install -r requirements.txt
- name: Build EXE - name: Build EXE
run: pyinstaller client.py run: pyinstaller -F client.py
- name: Archive EXE - name: Archive EXE
run: Compress-Archive -Path dist\ -DestinationPath release.zip run: Compress-Archive -Path dist\ -DestinationPath release.zip
@@ -32,4 +33,4 @@ jobs:
- name: Release - name: Release
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${{ github.ref_name }} "release.zip" --generate-notes --title "v-${{ github.ref_name }}" run: gh release create ${{ github.ref_name }} "release.zip" --generate-notes --title "release-${{ github.ref_name }}"