-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 953 Bytes
/
buildexe.yml
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
name: Build EXE
on:
push:
tags:
- 'v*' # Only run workflow on version tags, e.g. v1.0.0, v1.0.1, v1.0.2, etc.'
jobs:
build-py-to-exe:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install
with:
enable-cache: true
- name: Install requirements
run: uv pip install -r requirements.txt
env:
UV_SYSTEM_PYTHON: 1
- name: Build with Pyinstaller
run: pyinstaller -F src/main.py --add-data src/resources/:./resources/ --name AdventureSoft-Cave-of-Shadows
- name: Create release
uses: softprops/[email protected]
with:
files: |
dist/AdventureSoft-Cave-of-Shadows.exe
tag_name: ${{ github.ref_name }}
prerelease: false
name: ${{ github.ref_name }}