feat: 사이드탭 확장위한 컨테이너 #101 #9
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 Frontend | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- "frontend/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build React App | |
env: | |
VITE_AXIOS_PROD_BASE_URL: ${{ secrets.VITE_AXIOS_PROD_BASE_URL }} | |
VITE_GOOGLE_MAPS_API_KEY: ${{ secrets.VITE_GOOGLE_MAPS_API_KEY }} | |
VITE_GOOGLE_MAPS_ID: ${{ secrets.VITE_GOOGLE_MAPS_ID }} | |
run: | | |
cd ${{ github.workspace }}/frontend | |
yarn install --frozen-lockfile | |
yarn build | |
- name: Deploy to Nginx Server | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ secrets.NCP_SERVER_HOST }} | |
username: ${{ secrets.NCP_SERVER_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
source: "frontend/dist/*" | |
target: "/usr/share/nginx/html/" |