diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 5392f07..51cb77b 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -14,42 +14,43 @@ on: - main jobs: - job1: - build: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write - runs-on: ubuntu-latest - permissions: - contents: read - packages: write + steps: + - name: CheckOut + uses: actions/checkout@v4 + with: + token: ${{ secrets.ACTION_TOKEN }} + submodules: true - steps: - - name: CheckOut - uses: actions/checkout@v4 - with: - token: ${{ secrets.ACTION_TOKEN }} - submodules: true + - name: Set up JDK 17 + uses: + actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file - - name: Set up JDK 17 - uses: - actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Setup Gradle + uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0 - - name: Setup Gradle - uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0 + - name: Build with Gradle + run: + ./gradlew -version + ./gradlew clean build - - name: Build with Gradle - run: - ./gradlew -version - ./gradlew clean build + deplpoy: + needs: build + runs-on: ubuntu-latest - job2: - - needs: job1 - - name: ls - run: ls + steps: + - name: ls + run: ls # - name: AWS credential # uses: aws-actions/configure-aws-credentials@v1