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

Commit e2ac193

Browse files
authored
added workflow to create binaries for linux
1 parent bff6c1c commit e2ac193

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build_linux.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Create Binaries for Linux
2+
3+
on:
4+
push:
5+
tags:
6+
- '*linux'
7+
8+
9+
jobs:
10+
deploy:
11+
12+
runs-on: ubuntu-20.04
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
lfs: true
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.10'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
- name: Build binary
27+
run: pyinstaller --onefile removestars.py
28+
- name: list files
29+
run: ls -alh dist/
30+
- name: create tar.gz
31+
run: |
32+
cp -r weights dist/weights
33+
tar -czvf starrem2k13_ubuntu_20.04.tar.gz dist/*
34+
- uses: ncipollo/release-action@v1
35+
with:
36+
artifacts: "starrem2k13_ubuntu_20.04.tar.gz"
37+
bodyFile: "releasenotes.md"

0 commit comments

Comments
 (0)