From 90a78d2665a8121916240c3dc7575616cda46432 Mon Sep 17 00:00:00 2001 From: k000927 Date: Sat, 27 Jul 2024 01:46:02 +0900 Subject: [PATCH] test: actions test --- .github/workflows/client.yml | 53 ++++++++++++------------------------ 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 99673f89..edcac6b2 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -1,14 +1,14 @@ -#name: HybridJGS-FE -#on: -# push: -# branches: -# - test/gitAction -# -#jobs: -# build: -# name: HybridJGS-FE-Deploy -# runs-on: ubuntu-latest -# steps: +name: HybridJGS-FE +on: + push: + branches: + - test/gitAction + +jobs: + build: + name: HybridJGS-FE-Deploy + runs-on: ubuntu-latest + steps: # - name: Checkout source code # uses: actions/checkout@main # @@ -17,35 +17,18 @@ # # - name: Build # run: npm run build + # - 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: -# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} -# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -# run: aws s3 sync --region ap-northeast-2 build s3://hybridjgs-frontend --delete -# + - name: Deploy to S3 + 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 dist s3://hybridjgs-frontend + # - name: Invalidate CloudFront Cache # run: aws cloudfront create-invalidation --distribution-id - -name: Upload to S3 - -on: - push: - branches: - - test/gitAction -jobs: - upload: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: shallwefootball/s3-upload-action@master - with: - aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}} - aws_bucket: ${{ secrets.AWS_BUCKET }} - source_dir: 'client' \ No newline at end of file