Skip to content

Update deploy.yml

Update deploy.yml #13

Workflow file for this run

name: Analyze, Build and Deploy
on: [push]
jobs:
semantic-pull-request:
name: "Semantic"
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
# analyze:
# name: "Analyze"
# uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
# with:
# flutter_channel: stable
# flutter_version: 3.3.8
build:
name: Build
needs: [semantic-pull-request]
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: '3.19.1'
- name: 📦 Install Dependencies
run: |
flutter pub global activate very_good_cli
very_good packages get --recursive
- name: 🛠️ Build the application
run: flutter build web -t example/lib/main.dart
- name: ⬇️ Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: build
path: example/build/web
deploy:
name: "Deploy"
runs-on: ubuntu-latest
needs: build
steps:
- name: 📚 Checkout repo
uses: actions/checkout@v3
- name: ⬇️ Download Artifact
uses: actions/download-artifact@master
with:
name: build
path: example/build/web
- name: 🎯 Deploy to firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_OVERLAY_SEARCH }}'
channelId: live
projectId: overlay-search