Skip to content

Replace main.yml with updated GitHub Actions workflow for website bui… #1

Replace main.yml with updated GitHub Actions workflow for website bui…

Replace main.yml with updated GitHub Actions workflow for website bui… #1

Workflow file for this run

name: Build & Deploy Website
on:
push:
branches:
- main
jobs:
hosting:
name: Deploy Website
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@v2
# Install flutter command
- uses: subosito/flutter-action@v1
with:
channel: stable
# Build the website # flutter build web --web-renderer html --release
- name: Build Website
run: |
flutter config --enable-web
flutter pub get
# flutter build web --web-renderer html --release
flutter build web --release
working-directory: ./
# Deploy Firebase Hosting
- name: Deploy Firebase Hosting
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:fb-server-key-to-access-token
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: ./