-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.21 KB
/
onpushstable.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
name: Build On Push (Stable)
on:
# schedule:
# - cron: '0 0 * * *' # Runs at midnight every day
workflow_dispatch: {}
push:
paths:
- '.github/workflows/onpushstable.yml'
- 'gui.py'
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version you need
- name: Install dependencies
run: pip install pyinstaller PySide6
- name: Install Heimdall
run: sudo apt install heimdall-flash -y
- name: Build executable
run: pyinstaller --onefile --noconsole --add-binary "/bin/heimdall:." --add-data "$(pwd)/python-logo-only.svg:." gui.py && mv dist/gui dist/LinuxGUI
working-directory: ${{ github.workspace }}
- name: Create info file
run: |
echo -e "ref: $GITHUB_REF \ncommit: $GITHUB_SHA\nbuild: $(date +"%Y-%m-%dT%H:%M:%SZ")" \
> dist/info.txt
- name: Update nightly release
uses: pyTooling/Actions/releaser@r0
with:
tag: latest_untested
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: dist/*