Skip to content

Commit 434e5c0

Browse files
authored
Update firebase-hosting-merge.yml
1 parent 322a866 commit 434e5c0

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/firebase-hosting-merge.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,28 @@ on:
66
push:
77
branches:
88
- main
9+
910
jobs:
1011
build_and_deploy:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v4
14-
- run: cd my-app/
15-
- run: npm ci && npm run build
16-
- uses: FirebaseExtended/action-hosting-deploy@v0
15+
16+
- name: Install dependencies
17+
run: npm ci
18+
working-directory: my-app
19+
20+
- name: Build the app
21+
run: npm run build
22+
working-directory: my-app
23+
24+
- name: Deploy to Firebase
25+
uses: FirebaseExtended/action-hosting-deploy@v0
1726
with:
1827
repoToken: ${{ secrets.GITHUB_TOKEN }}
1928
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FINDMYNEXTCOURSE }}
2029
channelId: live
2130
projectId: findmynextcourse
31+
target: default
32+
env:
33+
FIREBASE_CLI_PREVIEWS: hostingchannels

0 commit comments

Comments
 (0)