diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..484536c0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 # 올바른 경로 설정 +