Merge pull request #18 from Soongsil-CoffeeChat/fix/#15 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |