Skip to content

fix: add await-workflow action to wait for pub.dev publishing #21

fix: add await-workflow action to wait for pub.dev publishing

fix: add await-workflow action to wait for pub.dev publishing #21

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- dev
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Await potential publishing on Pub.dev
uses: johannesvedder/await-workflow@v1
with:
workflowId: 'publish_pubdev.yml'
- name: Checkout code
uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Enable web support
run: flutter config --enable-web
- name: Install melos
run: dart pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Build Web"
run: melos run build:web --no-select
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_STUDYU_DEV }}'
channelId: live
projectId: studyu-dev