-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 949 Bytes
/
releases.yml
File metadata and controls
43 lines (34 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build and Release
on:
push:
tags: ['v*']
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv sync
- name: Install PyInstaller
run: uv pip install pyinstaller
- name: Build executable
run: uv run pyinstaller --onefile --noconsole --name "TestEditor" --icon="resources/testeditor_logo.ico" --add-data "resources;resources" main.py
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/TestEditor.exe
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}