-
Notifications
You must be signed in to change notification settings - Fork 31
63 lines (58 loc) · 1.7 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Release Linux & Windows binaries
on:
push:
branches: [ main, release-publish ]
schedule:
- cron: "* */6 * * *"
jobs:
linux-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r client/requirements.txt
- name: Build client.py
run: |
cd client
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar -xf upx-3.96-amd64_linux.tar.xz
wget https://github.com/emcruise/tor-rootkit/releases/download/tor-ubuntu/tor -P tor_linux/
python build.py
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: linux-latest
files: |
client/dist/client
windows-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r client\requirements.txt
- name: Build client.py
run: |
cd client
powershell wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip -OutFile upx-3.96-win64.zip
tar -xf upx-3.96-win64.zip
python build.py
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: win-latest
files: |
client\dist\client.exe