From 57028b8affcd82af691f61f73217c4c02a252546 Mon Sep 17 00:00:00 2001 From: JongKyeong <111286262+JONG-KYEONG@users.noreply.github.com> Date: Sun, 7 Jan 2024 18:27:01 +0900 Subject: [PATCH] Update deployBack.yml --- .github/workflows/deployBack.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deployBack.yml b/.github/workflows/deployBack.yml index fe42508..d950228 100644 --- a/.github/workflows/deployBack.yml +++ b/.github/workflows/deployBack.yml @@ -6,21 +6,25 @@ on: pull_request: branches: [ "develop" ] +permissions: + contents: read jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 + build: - - name: Grant execute permission for gradlew - run: chmod +x ./gradlew - shell: bash + runs-on: ubuntu-latest - - name: Build and Test - run: ./gradlew build test + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + # uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + # with: + # arguments: build + run : ./gradlew clean build --exclude-task test