-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (36 loc) · 1.23 KB
/
linux.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
name: Build and Release Linux Executable
on:
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag name'
required: true
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install PyInstaller
run: python -m pip install pyinstaller
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build executable
run: |
find . -name "*.json" -type f -delete # delete all json files which aren't required.
pyinstaller --onefile --add-data 'csab:csab' --add-data 'josaa:josaa' --exclude-module _tkinter tool.py
mv dist/tool jcounsellor
chmod +x jcounsellor
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.TOKEN }}
automatic_release_tag: ${{ github.event.inputs.release_tag }}
prerelease: false
title: JEECounsellor (Linux) - ${{ github.event.inputs.release_tag }}
files: |
jcounsellor