diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml index cf268faf..222cff64 100644 --- a/.github/workflows/manual-deploy.yml +++ b/.github/workflows/manual-deploy.yml @@ -34,6 +34,16 @@ jobs: java-version: '17' distribution: 'temurin' + - name: Cache Gradle packages # gradle cache를 통한 workflow 속도 개선 + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Permission for gradlew run: chmod +x ./gradlew shell: bash @@ -43,10 +53,13 @@ jobs: with: arguments: bootJar - - name: Make Zip File - run: zip -qq -r ./$GITHUB_SHA.zip . + - name: Make Zip File # appspec.yml, scripts 폴더, jar 파일, bad_word_list.txt만 압축 + run: zip -qq -r ./$GITHUB_SHA.zip ./appspec.yml ./scripts/ ${{ env.JAR_PATH }} ${{ env.FORBIDDEN_WORD_LIST }} shell: bash - + env: + JAR_PATH: ./build/libs/*SNAPSHOT.jar + FORBIDDEN_WORD_LIST: ./src/main/resources/secrets/bad_word_list.txt + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v3 with: