Skip to content

Live: zoom into a rectangle you draw (#290) #133

Live: zoom into a rectangle you draw (#290)

Live: zoom into a rectangle you draw (#290) #133

Workflow file for this run

name: dist
# Build the minified distribution and publish it as a rolling release asset that the
# firmware buildroot package fetches. The source in git stays unminified; only this
# artifact is minified, so the firmware build needs no JS/CSS toolchain and stays
# hermetic. Runs on every push to master so nightly firmware always gets the latest UI.
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: dist
cancel-in-progress: true
jobs:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build:dist
- name: Publish rolling dist release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release view dist >/dev/null 2>&1 || \
gh release create dist --prerelease --title "Minified dist (rolling)" \
--notes "Auto-built minified assets consumed by the OpenIPC firmware buildroot package. Tracks master; refreshed on every push."
gh release upload dist majestic-webui-dist.tar.gz --clobber