-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 953 Bytes
/
frontend-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: frontend-ci
on:
push:
branches:
- main
- frontend
workflow_call:
inputs:
environment:
type: string
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.1
- name: Resolve Flutter dependency
run: cd frontend && flutter pub get
- name: Create .env file
run: cd frontend && echo "NCU_PORTAL_CLIENT_ID=${{ secrets.NCU_PORTAL_CLIENT_ID }}" > .env
- name: Analyze and build web
run: |
cd frontend
flutter analyze
flutter build web --web-renderer=canvaskit
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: frontend-artifact
path: frontend/build/web/