Skip to content

Instantly share code, notes, and snippets.

@VB10
Created January 6, 2025 21:47
Show Gist options
  • Save VB10/b30a3094e596227474fa112e76ee0c77 to your computer and use it in GitHub Desktop.
Save VB10/b30a3094e596227474fa112e76ee0c77 to your computer and use it in GitHub Desktop.
Hatay'ı Yasat Web Publish Yaml
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
on:
pull_request:
branches:
- release
types: [closed]
workflow_dispatch:
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: 📦 Install Dependencies
run: flutter pub get
- name: ⬇️ Install Node
uses: actions/setup-node@v3
- name: 🔥 Install and Setup Firebase
run: npm install -g firebase-tools && firebase experiments:enable webframeworks
- name: 🛠️ Build Web
run: flutter build web
- name: 🎯 Deploy to firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_SAVEHATAY }}"
projectId: -
channelId: -
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment