Skip to content

Commit d491408

Browse files
committed
automatic release generation
1 parent 2543fa0 commit d491408

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tags:
77
- "v*"
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
build-linux:
1114
runs-on: ubuntu-latest
@@ -52,3 +55,19 @@ jobs:
5255
with:
5356
name: TinyTouch-windows-x64
5457
path: dist/TinyTouch-${{ github.ref_name }}-windows-x64.zip
58+
59+
release:
60+
runs-on: ubuntu-latest
61+
needs: [build-linux, build-windows]
62+
if: startsWith(github.ref, 'refs/tags/')
63+
steps:
64+
- uses: actions/download-artifact@v4
65+
with:
66+
path: dist
67+
- name: Create GitHub Release
68+
uses: softprops/action-gh-release@v2
69+
with:
70+
name: TinyTouch ${{ github.ref_name }}
71+
files: |
72+
dist/TinyTouch-linux-x64/TinyTouch-${{ github.ref_name }}-linux-x64.zip
73+
dist/TinyTouch-windows-x64/TinyTouch-${{ github.ref_name }}-windows-x64.zip

src/video_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ def __init__(self, video_path):
6565

6666

6767
if sys.platform.startswith("win"):
68-
self.program_version = "7.1 (Windows)"
68+
self.program_version = "7.2.0 (Windows)"
6969
elif sys.platform.startswith("linux"):
70-
self.program_version = "7.1 (Linux)"
70+
self.program_version = "7.2.0 (Linux)"
7171
else:
72-
self.program_version = "7.1 (Unknown OS)"
72+
self.program_version = "7.2.0 (Unknown OS)"
7373
print("INFO: Program version:", self.program_version)
7474
self.parameter1_name = None
7575
self.parameter2_name = None

0 commit comments

Comments
 (0)