Skip to content

Merge pull request #18 from Soongsil-CoffeeChat/fix/#15 #11

Merge pull request #18 from Soongsil-CoffeeChat/fix/#15

Merge pull request #18 from Soongsil-CoffeeChat/fix/#15 #11

name: Deploy to Firebase Hosting on merge
"on":
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "21"
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
env:
CI: false
- name: Install Firebase CLI
run: npm install -g firebase-tools
- name: Apply Firebase Hosting Target
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_COFFEEGO_SSU }}
run: firebase target:apply hosting coffeego-ssu coffeego-ssu.web.app --token $FIREBASE_TOKEN
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_COFFEEGO_SSU }}
channelId: live
projectId: coffego-ssu