Skip to content

build web

build web #5

Workflow file for this run

name: build web
on:
#push:
# branches: [ "main" ]
#pull_request:
# branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.27.1
- run: flutter --version
- run: flutter pub get
- run: flutter test
- run: flutter build web
- name: Deploy to GitHub Pages
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: firebase deploy --only hosting --token "$FIREBASE_TOKEN"