Skip to content

Commit 05102a5

Browse files
committed
build: only deploy on merge to dev
1 parent a26971f commit 05102a5

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/firebase-hosting-pull-request.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# This file was auto-generated by the Firebase CLI
22
# https://github.com/firebase/firebase-tools
33

4-
name: Deploy to Firebase Hosting on PR
5-
on: pull_request
6-
permissions:
7-
checks: write
8-
contents: read
9-
pull-requests: write
4+
name: Deploy to Firebase Hosting on merge to dev
5+
on:
6+
push:
7+
branches:
8+
- dev
109
jobs:
1110
build_and_preview:
12-
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
1311
runs-on: ubuntu-latest
1412
steps:
1513
- uses: actions/checkout@v4
@@ -32,9 +30,8 @@ jobs:
3230
with:
3331
repoToken: ${{ secrets.GITHUB_TOKEN }}
3432
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ANYSTEP_COMMUNITY_SERVICES }}
35-
channelId: pr-${{ github.event.number }}
33+
channelId: dev
3634
expires: 12h
3735
projectId: anystep-community-services
3836
env:
3937
FIREBASE_CLI_EXPERIMENTS: webframeworks
40-

0 commit comments

Comments
 (0)