Skip to content

Commit d6ee1a3

Browse files
committed
Fixed release workflow
1 parent e324438 commit d6ee1a3

3 files changed

Lines changed: 110 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Release
22

33
on:
44
push:
5-
tags:
6-
- "v*"
5+
branches:
6+
- master
77

88
jobs:
99
build:
1010
name: Build on ${{ matrix.os }}
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest, macos-latest, windows-latest]
14+
os: [ubuntu-latest, windows-latest]
1515
permissions:
1616
contents: write
1717

@@ -24,23 +24,24 @@ jobs:
2424
enable-cache: true
2525

2626
- name: Set up Python
27-
run: uv python install
27+
run: |
28+
uv sync
29+
uv python install
2830
2931
- name: Build standard distribution
3032
if: matrix.os == 'ubuntu-latest'
3133
run: uv build
3234

3335
- name: Build Windows EXE
3436
if: matrix.os == 'windows-latest'
35-
run: |
36-
uv sync
37-
uv run pyinstaller --windowed --onefile main.py
37+
run: uv run pyinstaller --windowed --onefile main.py
3838

3939
- name: Upload to GitHub Release
4040
uses: softprops/action-gh-release@v2
4141
with:
42+
tag_name: Latest
43+
make_latest: true
4244
files: dist/*
4345
fail_on_unmatched_files: false
44-
append_body: true
4546
env:
4647
GITHUB_TOKEN: ${{ secrets.Release }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ requires-python = ">=3.11"
77
dependencies = [
88
"art>=6.5",
99
"cryptography>=46.0.3",
10+
"pyinstaller>=6.18.0",
1011
]

uv.lock

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)