Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: pull_request

on:
pull_request:
branches: [ main ] # ✅ ab PR par bhi trigger hoga
push:
branches-ignore: '**'

env:
NIXPKGS_ALLOW_UNFREE: 1

jobs:
build-preview:
runs-on: 'ubuntu-24.04'
Expand All @@ -22,6 +27,7 @@ jobs:
with:
name: result
path: ./out/

deploy-preview:
needs:
- build-preview
Expand All @@ -32,11 +38,14 @@ jobs:
with:
name: result
path: ./out/

# ✅ Deploy ko PR events par skip kar do
- name: Deploy to Firebase
if: github.event_name != 'pull_request'
uses: w9jds/firebase-action@master
with:
args: hosting:channel:deploy "$GITHUB_SHA"
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_ID: note-maps
PROJECT_PATH: ./build/firebase/
PROJECT_PATH: ./build/firebase/