From efc3697732c3a0e44031dd6f201dec775e350593 Mon Sep 17 00:00:00 2001 From: timepresent95 Date: Fri, 23 Aug 2024 23:53:35 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20dev=20=ED=99=98=EA=B2=BD=20ci/cd=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=ED=99=94=20=EC=BD=94=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ktb-23/healthkungya-cloud#5 --- .github/workflows/development-ci-cd.yaml | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/development-ci-cd.yaml diff --git a/.github/workflows/development-ci-cd.yaml b/.github/workflows/development-ci-cd.yaml new file mode 100644 index 0000000..e7b745d --- /dev/null +++ b/.github/workflows/development-ci-cd.yaml @@ -0,0 +1,36 @@ +name: Sean Front End CI/CD + +on: + push: + branches: + - dev + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: dev + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + + - name: Install dependencies + run: npm ci + + - name: Run build script + run: npm run build + + - name: Upload to S3 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.SEAN_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.SEAN_AWS_SECRET_ACCESS_KEY }} + AWS_REGION: 'ap-northeast-2' + run: | + aws s3 cp ./dist s3://ktb-23-healthkungya-storage-dev --recursive \ No newline at end of file From 3a7254500975c3f250d241321dc4df7424995ce7 Mon Sep 17 00:00:00 2001 From: timepresent95 Date: Tue, 27 Aug 2024 18:00:25 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20package=20manager=EB=A5=BC=20npm?= =?UTF-8?q?=EC=97=90=EC=84=9C=20yarn=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ktb-23/healthkungya-cloud#5 --- .github/workflows/development-ci-cd.yaml | 52 ++++++++++++------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/development-ci-cd.yaml b/.github/workflows/development-ci-cd.yaml index e7b745d..e76d6b3 100644 --- a/.github/workflows/development-ci-cd.yaml +++ b/.github/workflows/development-ci-cd.yaml @@ -1,36 +1,36 @@ name: Sean Front End CI/CD on: - push: - branches: - - dev - workflow_dispatch: + push: + branches: + - dev + workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: dev + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: dev - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 22.x + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x - - name: Install dependencies - run: npm ci + - name: Install dependencies + run: yarn install --frozen-lockfile - - name: Run build script - run: npm run build + - name: Run build script + run: yarn build - - name: Upload to S3 - env: - AWS_ACCESS_KEY_ID: ${{ secrets.SEAN_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.SEAN_AWS_SECRET_ACCESS_KEY }} - AWS_REGION: 'ap-northeast-2' - run: | - aws s3 cp ./dist s3://ktb-23-healthkungya-storage-dev --recursive \ No newline at end of file + - name: Upload to S3 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.SEAN_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.SEAN_AWS_SECRET_ACCESS_KEY }} + AWS_REGION: 'ap-northeast-2' + run: | + aws s3 cp ./dist s3://ktb-23-healthkungya-storage-dev --recursive