Skip to content

Commit

Permalink
workflow 수정 #84
Browse files Browse the repository at this point in the history
zip 파일 생성, S3 경로 변경
  • Loading branch information
chaewss committed Jul 27, 2023
1 parent 3900dc4 commit 48dd6c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ jobs:

- name: Build with Gradle
run: ./gradlew build -x test

- name: Make zip file
run: zip -qq -r ./$GITHUB_SHA.zip .
shell: bash

- name: AWS Configure credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ap-northeast-2
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp ${{ env.GITHUB_SHA }}.zip s3://${{ env.S3_BUCKET_NAME }}/${{ env.GITHUB_SHA }}.zip
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://${{ env.S3_BUCKET_NAME }}/${{ env.PROJECT_NAME }}/$GITHUB_SHA.zip

- name: Deploy with AWS codeDeploy
run: aws deploy create-deployment
Expand Down

0 comments on commit 48dd6c9

Please sign in to comment.