Skip to content

Commit

Permalink
Merge pull request #226 from nwplus/fix-ci-cd
Browse files Browse the repository at this point in the history
Fix CI/CD
  • Loading branch information
meleongg authored Dec 13, 2023
2 parents c9da880 + 1cf02fb commit 9fcf52d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NWPLUS_UBC }}'
channelId: live
projectId: nwplus-ubc
firebaseToolsVersion: 12.9.1
11 changes: 6 additions & 5 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
"on": pull_request
'on': pull_request
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: '16.x'
- name: Install and Build
run: yarn install --frozen-lockfile && yarn build
env:
Expand All @@ -29,6 +29,7 @@ jobs:
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_NWPLUS_UBC }}"
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NWPLUS_UBC }}'
projectId: nwplus-ubc
firebaseToolsVersion: 12.9.1

0 comments on commit 9fcf52d

Please sign in to comment.