-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 875 Bytes
/
main.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
name: KTU Result
on: push
jobs:
hosting:
name: Deploy Website
runs-on: ubuntu-latest
steps:
# Checkout Repository
- uses: actions/checkout@v3
# Install Flutter command
- uses: subosito/flutter-action@v2.8.0
with:
channel: 'dev'
# Build Website
- name: Build Website
run: |
flutter channel stable
flutter upgrade
flutter config --enable-web
flutter pub get
flutter build web --release
working-directory: ./
# Deploy Firebase Hosting
- name: Deploy Firebase Hosting
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:ktu-edu-in-result
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: ./