Skip to content

Commit f016208

Browse files
authored
added file to build binaries for windows
1 parent aa6d75e commit f016208

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
name: Create Binaries for Windows
3+
4+
on:
5+
push:
6+
tags:
7+
- '*win'
8+
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: windows-2019
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
lfs: true
19+
- name: Set up Python
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: '3.6'
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
- name: Build binary
28+
run: pyinstaller --onefile starrem2k13.py -i starrem.ico
29+
- name: copy weights
30+
run: xcopy weights\* dist\weights\ /E
31+
- name: copy other files
32+
run: |
33+
xcopy LICENSE dist\ /E
34+
xcopy releasenotes.md dist\ /E
35+
- uses: thedoctor0/zip-release@main
36+
with:
37+
type: 'zip'
38+
filename: 'starrem2k13_win.zip'
39+
directory: 'dist/'
40+
exclusions: '*.git* /*node_modules/* .editorconfig'
41+
- uses: ncipollo/release-action@v1
42+
with:
43+
artifacts: "dist/starrem2k13_win.zip"
44+
bodyFile: "releasenotes.md"

0 commit comments

Comments
 (0)