-
Notifications
You must be signed in to change notification settings - Fork 27
59 lines (51 loc) · 1.47 KB
/
compile_exe.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
name: Complie LogonDetails.exe
on:
push:
branches:
- 'main'
jobs:
changes:
name: Check for Changes
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
build: ${{ steps.filter.outputs.build }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Check for Changes
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
build:
- './UK/LogonDetails.py'
build-exe:
name: Build EXE
runs-on: windows-latest
needs: changes
if: ${{ needs.changes.outputs.build == 'true' }}
concurrency:
group: uk-controller-pack-build-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ secrets.VATSIM_UK_GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Dependencies
run: pip install pyinstaller
- name: Run Python Script
run: pyinstaller --distpath ./UK/ --onefile --icon=./.github/workflows/logo.ico -n LogonDetails.exe ./UK/LogonDetails.py
- name: Commit exe File
run: |
git config --local user.email "[email protected]"
git config --local user.name "VATSIM UK"
git add ./UK/LogonDetails.exe
git commit -m "Update LogonDetails.exe"
git push