-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.08 KB
/
actions.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
name: Build and deploy GUI app
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install Pillow requests pyinstaller
- name: Build for Windows
run: |
pyinstaller --onefile --windowed main.py
mv dist/main.exe dist/Heroes3MapLiker_windows.exe
- name: Build for Linux
run: |
pyinstaller --onefile --windowed main.py
mv dist/main dist/Heroes3MapLiker_linux
- name: Build for macOS
run: |
pyinstaller --onefile --windowed main.py
mv dist/main dist/Heroes3MapLiker_macos
- name: Run Tests
run: python tests.py
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: builds
path: |
dist/Heroes3MapLiker_windows.exe
dist/Heroes3MapLiker_linux
dist/Heroes3MapLiker_macos