-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (45 loc) · 1.24 KB
/
build.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
name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build-release:
permissions: write-all
name: Build
runs-on: ${{ matrix.os }}
env:
dist-name: ESurfingPy-CLI
strategy:
matrix:
os: [windows-2019, ubuntu-20.04, macos-11.0]
python-version: ['3.10']
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Check out
uses: actions/checkout@v3
- name: Install dependencies
run: |
pip3 install -I -r requirements.txt
pip3 install pyinstaller
- name: Install Tkinter for Ubuntu
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: sudo apt-get install python3-tk
- name: Build
run: python build.py
- name: Package
working-directory: dist
run: tar -zcvf ../${{ env.dist-name }}_${{ matrix.os }}.tar.gz -c ./*
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }} Build
path: ${{ env.dist-name }}_${{ matrix.os }}.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ env.dist-name }}_${{ matrix.os }}.tar.gz