Skip to content

Commit

Permalink
feat: cicd 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjun2018 authored Jan 9, 2025
1 parent 94d4e65 commit e72580b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI/CD

on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy to S3
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Upload to S3
run: |
aws s3 sync ./dist/ s3://${{ secrets.AWS_S3_BUCKET }} --delete

0 comments on commit e72580b

Please sign in to comment.