Files
flutter/.github/workflows/build-web.yml
dependabot[bot] 4db33865df Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 00:52:32 +00:00

50 lines
1.1 KiB
YAML

name: Build Web
on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/Tag to build'
required: true
default: 'master'
workflow_call:
inputs:
ref:
required: true
type: string
permissions:
contents: read
jobs:
# Builds two a default JavaScript build and a WebAssembly one
build_web:
name: Web
runs-on: ubuntu-latest
steps:
- name: Checkout application
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
- name: Common flutter setup
uses: ./.github/actions/flutter-common
- name: Build web (JavaScript)
run: flutter build web --release
- name: Package JavaScript build
run: tar -zcvf web.tar.gz -C build web
- name: Build web (WebAssembly)
run: flutter build web --release --wasm
- name: Package WebAssembly build
run: tar -zcvf web-wasm.tar.gz -C build web
- uses: actions/upload-artifact@v7
with:
name: builds-web
path: |
web.tar.gz
web-wasm.tar.gz