Skip to content

fix(ci): update web build to upload single html file #30

fix(ci): update web build to upload single html file

fix(ci): update web build to upload single html file #30

Workflow file for this run

name: Build Web
on:
push:
branches: [main]
paths:
- 'web/**'
- '.github/workflows/build-web.yml'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: web/package-lock.json
- name: Install and build
working-directory: web
run: |
npm ci
npm run build
- name: Update tag
run: |
git tag -f web-dist
git push -f origin web-dist
- name: Upload to release
uses: softprops/action-gh-release@v2
with:
tag_name: web-dist
name: Web Dashboard Assets
body: |
Pre-built web assets for `dk serve`.
These files are automatically downloaded during installation.
files: web/dist/index.html