Skip to content

Explore destination #15

Explore destination

Explore destination #15

# This file was auto-generated by the Firebase CLI
# https:/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
"on": pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
- name: "Run flutter pub get"
run: flutter pub get
- name: "Create .env file"
run: touch .env
- name: "Write baseUrl to .env file"
run: echo "BASEURL=${{secrets.BASEURL}}" | cat >> .env
- name: "Write key to .env file"
run: echo "KEY=${{secrets.KEY}}" | cat >> .env
- name: "Run build_runner build"
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: "Build Web App"
run: flutter build web
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_TRAVELPLANNERPRO_10394 }}"
projectId: travelplannerpro-10394