diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index bf54bc6..ed8e1c6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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' @@ -22,6 +27,7 @@ jobs: with: name: result path: ./out/ + deploy-preview: needs: - build-preview @@ -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/ \ No newline at end of file