Skip to content

Feat: Favorite function #29

Feat: Favorite function

Feat: Favorite function #29

name: Deploy to Firebase Hosting on PR
on: pull_request
jobs:
build_web:
name: Build Flutter (Web)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
ssh-key: ${{ secrets.DEPLOY_KEY }}
token: ${{ secrets.PAT_ACCESS_TOKEN }}
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.16.4'
channel: 'stable'
- run: flutter pub get
- run: flutter config --enable-web
- run: flutter build web
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: web-build
path: build/web
deploy:
needs: build_web
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: web-build
path: build/web
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BTD6_WIKI }}'
projectId: btd6-wiki
channelId: live