Skip to content

Commit 4c4262d

Browse files
committed
Prepare for release
1 parent eae947e commit 4c4262d

File tree

2 files changed

+130
-1
lines changed

2 files changed

+130
-1
lines changed
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-linux:
13+
name: Build on Linux
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: 3.11
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
pip install pyinstaller
28+
29+
- name: Build Executable
30+
run: pyinstaller --onefile --noconfirm vidminal.py
31+
32+
- name: Rename Executable
33+
run: mv dist/vidminal dist/vidminal-linux
34+
35+
- name: Upload Artifact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: vidminal-linux
39+
path: dist/vidminal-linux
40+
41+
build-windows:
42+
name: Build on Windows
43+
runs-on: windows-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Set up Python
48+
uses: actions/setup-python@v4
49+
with:
50+
python-version: 3.11
51+
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install -r requirements.txt
56+
pip install pyinstaller
57+
58+
- name: Build Executable
59+
run: pyinstaller --onefile --noconfirm vidminal.py
60+
61+
- name: Rename Executable
62+
run: Rename-Item -Path dist\vidminal.exe -NewName vidminal-windows.exe
63+
64+
- name: Upload Artifact
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: vidminal-windows
68+
path: dist/vidminal-windows.exe
69+
70+
build-macos:
71+
name: Build on macOS
72+
runs-on: macos-latest
73+
steps:
74+
- uses: actions/checkout@v4
75+
76+
- name: Set up Python
77+
uses: actions/setup-python@v4
78+
with:
79+
python-version: 3.11
80+
81+
- name: Install dependencies
82+
run: |
83+
python -m pip install --upgrade pip
84+
pip install -r requirements.txt
85+
pip install pyinstaller
86+
87+
- name: Build Executable
88+
run: pyinstaller --onefile --noconfirm vidminal.py
89+
90+
- name: Rename Executable
91+
run: mv dist/vidminal dist/vidminal-macos
92+
93+
- name: Upload Artifact
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: vidminal-macos
97+
path: dist/vidminal-macos
98+
99+
release:
100+
name: Create GitHub Release
101+
runs-on: ubuntu-latest
102+
needs: [build-linux, build-windows, build-macos]
103+
steps:
104+
- name: Download Linux Artifact
105+
uses: actions/download-artifact@v4
106+
with:
107+
name: vidminal-linux
108+
path: ./release
109+
110+
- name: Download Windows Artifact
111+
uses: actions/download-artifact@v4
112+
with:
113+
name: vidminal-windows
114+
path: ./release
115+
116+
- name: Download macOS Artifact
117+
uses: actions/download-artifact@v4
118+
with:
119+
name: vidminal-macos
120+
path: ./release
121+
122+
- name: Create GitHub Release and Upload Assets
123+
uses: softprops/action-gh-release@v1
124+
with:
125+
files: |
126+
release/vidminal-linux
127+
release/vidminal-windows.exe
128+
release/vidminal-macos
129+
env:
130+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
temp
22
.vscode
3-
.github
43

54
ffmpeg
65
ffmpeg.exe

0 commit comments

Comments
 (0)