Skip to content

feat: 기자재 조회/메인 페이지 카테고리 기능 구현 (#24) #2

feat: 기자재 조회/메인 페이지 카테고리 기능 구현 (#24)

feat: 기자재 조회/메인 페이지 카테고리 기능 구현 (#24) #2

Workflow file for this run

name: deploy frontend server
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository and set up
uses: actions/checkout@v4
- name: setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: generate env file
run: |
touch .env
echo BASE_URL="${{ secrets.BASE_URL }}" >> .env
cat .env
- name: build before install pnpm
run: pnpm install
- name: build process
run: pnpm run build
- name: compress build files
run: tar -cvf build.tar dist
- name: copy file via ssh key (scp)
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
source: 'build.tar'
target: /home/ubuntu/
- name: run deploy script via scp
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
pwd
ls -al
bash front-deploy.sh