From e72580b00815098ab83797f21c009488f9668f0d Mon Sep 17 00:00:00 2001 From: sungjun Date: Thu, 9 Jan 2025 11:21:06 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20cicd=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 0000000..5845fed --- /dev/null +++ b/.github/workflows/cicd.yml @@ -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 From c86e6ad8954cd000613d06842836190add4baf60 Mon Sep 17 00:00:00 2001 From: sungjun Date: Thu, 9 Jan 2025 11:40:41 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20ci/cd=20=EB=B8=8C=EB=9E=9C=EC=B9=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 5845fed..ecffcd5 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - feature/deploy jobs: build-deploy: From 3f2db48904afcaec5e1f55f2f16c8bf81a390938 Mon Sep 17 00:00:00 2001 From: sungjun Date: Thu, 9 Jan 2025 11:58:01 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=EC=9A=B4=EC=98=81=EC=B2=B4=EC=A0=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index ecffcd5..0a5c723 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -8,7 +8,7 @@ on: jobs: build-deploy: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v3