From d105c343002584813a25b9f1d19f2ae8a7899358 Mon Sep 17 00:00:00 2001 From: k000927 Date: Fri, 26 Jul 2024 11:32:28 +0900 Subject: [PATCH] test: actions test --- .github/workflows/client.yml | 31 +++++++++++++++++++++++++++++++ package-lock.json | 6 ++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/client.yml create mode 100644 package-lock.json diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml new file mode 100644 index 00000000..c4fd33c6 --- /dev/null +++ b/.github/workflows/client.yml @@ -0,0 +1,31 @@ +name: HybridJGS-FE +on: + push: + branches: + - test/gitAction +jobs: + build: + 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: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials + 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://jgs-fronted --delete + + - name: Invalidate CloudFront Cache + run: aws cloudfront create-invalidation --distribution-id \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..44a12ca5 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "Team7-HybridJGS-FE", + "lockfileVersion": 3, + "requires": true, + "packages": {} +}