1
0
Fork 0
mirror of https://github.com/EDeev/school_table.git synced 2026-10-07 20:49:37 +03:00
school_table/.github/workflows/release.yml
Egor Deev 031082f4c0 requirements.txt, CI и сборка .exe в релиз
CI: ruff и запуск окна в offscreen-режиме с чтением базы. По тегу v* GitHub Actions
собирает SchoolTable.exe (PyInstaller) и кладёт в релиз архив с exe, пустой базой и иконкой.
2026-10-05 18:42:17 +00:00

25 lines
825 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Release
on:
push:
tags: ["v*"]
jobs:
exe:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install pyinstaller -r requirements.txt
- name: Сборка .exe
run: pyinstaller --onefile --windowed --icon image.ico --name SchoolTable main.py
- name: Архив с программой, пустой базой и иконкой
run: Compress-Archive -Path dist/SchoolTable.exe, table.db, image.ico -DestinationPath SchoolTable-windows.zip
- name: Файл в релиз
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload "${{ github.ref_name }}" SchoolTable-windows.zip --clobber