Skip to content

[FE] Rollback: 소켓 연결 방식 롤백 #16

[FE] Rollback: 소켓 연결 방식 롤백

[FE] Rollback: 소켓 연결 방식 롤백 #16

Workflow file for this run

on:
pull_request:
branches:
- main
paths:
- "frontend/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Install dependencies
run: |
cd frontend
npm install
npm run build
- name: Clean up existing files on server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.API_HOST }}
username: ${{ secrets.API_USER }}
port: ${{ secrets.API_PORT }}
password: ${{ secrets.API_PASSWORD }}
script: |
rm -rf /home/codeclash/frontend
- name: Deploy to Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.API_HOST }}
username: ${{ secrets.API_USER }}
port: ${{ secrets.API_PORT }}
password: ${{ secrets.API_PASSWORD }}
source: frontend/build
target: /home/codeclash