Skip to content

feat(CLAP-33): 이미지 로드 스크린 #24

feat(CLAP-33): 이미지 로드 스크린

feat(CLAP-33): 이미지 로드 스크린 #24

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy Service to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
environment: preview
defaults:
run:
working-directory: packages/service
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6
with:
RELATIVE: 'packages/service'
id: git-diff
- name: Create .env file
if: steps.git-diff.outputs.diff
run: |
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$SECRETS_CONTEXT" > .env
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
- name: Install Dependencies and Build
if: steps.git-diff.outputs.diff
run: |
npm install -g pnpm && pnpm install && pnpm build
- name: Deploy to Firebase Hosting
if: steps.git-diff.outputs.diff
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WATERMELON_CLAP }}'
projectId: watermelon-clap