Skip to content

Update

Update #15

Workflow file for this run

name: Build On Push
on:
# schedule:
# - cron: '0 0 * * *' # Runs at midnight every day
workflow_dispatch: {}
push:
paths:
- '.github/workflows/onpush.yml'
- 'guiunstable.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 -r requirements.txt
- name: Install Heimdall
run: sudo apt update && sudo apt install heimdall-flash -y
- name: Build executable
run: pyinstaller --onefile --noconsole --add-binary "/bin/heimdall:heimdall/heimdall_linux" --add-data "$(pwd)/devices.json:." guiunstable.py && mv dist/guiunstable dist/LinuxGUI && chmod +x 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: nightly
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: dist/*