File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 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 starrem2k13.py -i starrem.ico
28+ - name : list files
29+ run : ls -alh dist/
30+ - name : create tar.gz
31+ run : |
32+ cp -r weights dist/weights
33+ cp LICENSE dist/
34+ cp releasenotes.md dist/
35+ tar -czvf starrem2k13_ubuntu_20.04.tar.gz dist/*
36+ - uses : ncipollo/release-action@v1
37+ with :
38+ artifacts : " starrem2k13_ubuntu_20.04.tar.gz"
39+ bodyFile : " releasenotes.md"
Original file line number Diff line number Diff line change 1+ name : Create Binaries for MacOS
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *macos'
7+
8+
9+ jobs :
10+ deploy :
11+
12+ runs-on : macos-12
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 starrem2k13.py -i starrem.ico
28+ - name : list files
29+ run : ls -alh dist/
30+ - name : create tar.gz
31+ run : |
32+ cp -r weights dist/weights
33+ cp LICENSE dist/
34+ cp releasenotes.md dist/
35+ tar -czvf starrem2k13_macos_12.tar.gz dist/*
36+ - uses : ncipollo/release-action@v1
37+ with :
38+ artifacts : " starrem2k13_macos_12.tar.gz"
39+ bodyFile : " releasenotes.md"
You can’t perform that action at this time.
0 commit comments