Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 0af914f

Browse files
authored
Added workflow to create windows binaries
1 parent f605a82 commit 0af914f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build_windows

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 removestars.py
29+
- name: copy weights
30+
run: |
31+
xcopy weights\* dist\weights\ /E
32+
- uses: thedoctor0/zip-release@main
33+
with:
34+
type: 'zip'
35+
filename: 'starrem2k13_win.zip'
36+
directory: 'dist/'
37+
exclusions: '*.git* /*node_modules/* .editorconfig'
38+
- uses: ncipollo/release-action@v1
39+
with:
40+
artifacts: "dist/starrem2k13_win.zip"
41+
bodyFile: "releasenotes.md"

0 commit comments

Comments
 (0)