Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
S3 CI/CD
  • Loading branch information
racgoo authored Aug 8, 2024
1 parent edc7c60 commit fb2a7fa
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: React build
on:
push:
branches:
- deploy

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

- name: Install Dependencies
run: yarn

- name: Build
run: yarn run build:admin

- name: Deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 cp \
--recursive \
--region ap-northeast-2 \
packages/admin/dist s3://yangbong-front # 올바른 경로 설정

0 comments on commit fb2a7fa

Please sign in to comment.