From 33e2fce08fb538f6cef69bfe119f80e4c292d0b5 Mon Sep 17 00:00:00 2001 From: minjikim <79203421+Lightieey@users.noreply.github.com> Date: Thu, 19 Oct 2023 02:03:48 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b22027e..5fe0fdf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -64,7 +64,7 @@ jobs: shell: bash - name: AWS credential 설정 - if: contains(github.ref, 'develop') + if: contains(github.ref, 'main') uses: aws-actions/configure-aws-credentials@v1 with: aws-region: ${{ env.AWS_REGION }} @@ -72,7 +72,7 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - name: Upload to AWS S3 - if: contains(github.ref, 'develop') + if: contains(github.ref, 'main') run: | aws deploy push \ --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} \ @@ -82,7 +82,7 @@ jobs: # S3 버킷에 있는 파일을 대상으로 CodeDeploy 실행 - name: Deploy to AWS EC2 from S3 - if: contains(github.ref, 'develop') + if: contains(github.ref, 'main') run: | aws deploy create-deployment \ --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} \