shitman/.forgejo/workflows/main-build.yaml
zeyus 18e3dd5560
Some checks failed
/ build-web (push) Failing after 21s
nodejs
2025-07-21 14:41:50 +02:00

43 lines
1 KiB
YAML

on:
push:
branches:
- main
jobs:
build-web:
runs-on: flutter-web-builder
steps:
- name: install node
id: node-install
run: apt update && apt install nodejs
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Flutter
id: cache-flutter
uses: actions/cache@v4
with:
path: ${{ HOME }}/.tool-cache
key: ${{ forge.ref_name }}-flutter-cache-temp
- name: Cache pub dependencies
uses: actions/cache@v4
id: cache-pub
with:
path: ${{ HOME }}/.pub-cache
key: ${{ forge.ref_name }}-pub-cache-temp
- name: Get dependencies
run: flutter pub get
- name: Build web
run: flutter build web --release
- name: List build output
run: ls -la build/web/
# Optional: Archive the build artifacts
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: web-build
path: build/web/