Skip to content

Commit 6442e8b

Browse files
committed
+ CI
1 parent 7bcae7f commit 6442e8b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build_release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build application on release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.10.1
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
pip install pyinstaller
25+
26+
- name: Convert python files to executable
27+
run: pyinstaller main.spec
28+
29+
- name: Compress files
30+
uses: vimtor/action-zip@v1
31+
with:
32+
files: dist/main/
33+
dest: BulkStartStop_portable.zip
34+
35+
- name: Create Release
36+
uses: softprops/action-gh-release@v1
37+
env:
38+
GITHUB_TOKEN: ${{ github.token }}
39+
with:
40+
name: Release ${{ github.ref_name }}
41+
files: BulkStartStop_portable.zip

0 commit comments

Comments
 (0)