Skip to content

Commit

Permalink
added file to build binaries for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
code2k13 authored Jan 7, 2023
1 parent aa6d75e commit f016208
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

name: Create Binaries for Windows

on:
push:
tags:
- '*win'


jobs:
deploy:

runs-on: windows-2019

steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.6'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build binary
run: pyinstaller --onefile starrem2k13.py -i starrem.ico
- name: copy weights
run: xcopy weights\* dist\weights\ /E
- name: copy other files
run: |
xcopy LICENSE dist\ /E
xcopy releasenotes.md dist\ /E
- uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'starrem2k13_win.zip'
directory: 'dist/'
exclusions: '*.git* /*node_modules/* .editorconfig'
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/starrem2k13_win.zip"
bodyFile: "releasenotes.md"

0 comments on commit f016208

Please sign in to comment.