From 709db79c08c62a7449b9cf235fba819a2b70f520 Mon Sep 17 00:00:00 2001 From: k000927 Date: Sat, 27 Jul 2024 01:58:06 +0900 Subject: [PATCH] test: actions test --- .github/workflows/client.yml | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index e8c6c2bd..19ad5be0 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -1,34 +1,26 @@ name: HybridJGS-FE + on: push: branches: - test/gitAction jobs: - build: - name: HybridJGS-FE-Deploy + deploy: runs-on: ubuntu-latest steps: -# - name: Checkout source code -# uses: actions/checkout@main -# -# - name: Install Dependencies -# run: npm install -# -# - name: Build -# run: npm run build + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup node + uses: actions/setup-node@v2 -# - name: Configure AWS Credentials -# uses: aws-actions/configure-aws-credentials@v4 -# with: -# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} -# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -# aws-region: ap-northeast-2 - - name: Deploy to S3 - env: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: 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 client s3://hybridjgs-frontend + aws-region: ap-northeast-2 -# - name: Invalidate CloudFront Cache -# run: aws cloudfront create-invalidation --distribution-id + - name: Deploy static site to S3 bucket + run: aws s3 sync s3://hybridjsg-frontend \ No newline at end of file