Skip to content

Commit

Permalink
test: actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Jul 26, 2024
1 parent a71ff9f commit c78c0ea
Showing 1 changed file with 40 additions and 23 deletions.
63 changes: 40 additions & 23 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -1,13 +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
#
Expand All @@ -16,17 +17,33 @@ jobs:
#
# - 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: 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: Invalidate CloudFront Cache
# run: aws cloudfront create-invalidation --distribution-id

- name: Invalidate CloudFront Cache
run: aws cloudfront create-invalidation --distribution-id
name: Upload to S3

on: [push]

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: 'dirname'

0 comments on commit c78c0ea

Please sign in to comment.