add: bundled HTML to release #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build bundled HTML | |
on: | |
push: | |
paths: | |
- 'viewer/web/**' | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
build-html: | |
name: Build html | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
cache-dependency-path: viewer/native/package-lock.json | |
- run: | | |
cd viewer/web | |
npm ci | |
npx inliner | |
npx inliner --version | |
npx inliner index.html | |
npx inliner index.html > fsk-energymeter.html | |
ls -al | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: html | |
path: viewer/web/fsk-energymeter.html |