Skip to content

Commit

Permalink
chore : prod CI/CD 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
waterricecake committed Oct 17, 2024
1 parent 3a5365c commit e3b79af
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/frontend-prod-CICD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Dev CI/CD

on:
push:
branches: [ test ]

permissions:
contents: read

jobs:
build:
runs-on:
group: Default
labels: [ self-hosted, dev ]
permissions:
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- name: prod 서버 파일 전송
run: scp -i ${{secrets.PROD_PEM_KEY}} -r ./dist ${{secrets.PROD_USER_NAME}}@${{secrets.PROD_SERVER}}:~/

0 comments on commit e3b79af

Please sign in to comment.