[REFACTOR] SEO 최적화 및 gogle analytics 적용 #44
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on PR | |
on: pull_request | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# .env 파일 생성 | |
- name: Create .env file | |
run: | | |
echo "REACT_APP_WWWM_BE_ENDPOINT=${{ secrets.REACT_APP_WWWM_BE_ENDPOINT }}" >> .env | |
echo "REACT_APP_WWWM_BE_DEV_EP=${{ secrets.REACT_APP_WWWM_BE_DEV_EP }}" >> .env | |
echo "REACT_APP_WWWM_FE_KAKAO_API_KEY_SHARE=${{ secrets.REACT_APP_WWWM_FE_KAKAO_API_KEY_SHARE }}" >> .env | |
# Node.js 설치 및 프로젝트 의존성 설치 | |
- name: Install dependencies | |
run: npm ci | |
# 빌드 실행 | |
- name: Build the project | |
run: npm run build | |
# Firebase 배포 | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: ${{ secrets.GITHUB_TOKEN }} | |
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WHEN_WILL_WE_MEET_5C1D0 }} | |
channelId: live | |
projectId: when-will-we-meet-5c1d0 |