From c549bb106bbc88cdf3e88da6e234f2feba9c42c1 Mon Sep 17 00:00:00 2001 From: aseemsavio Date: Sun, 10 Sep 2023 12:46:23 +0530 Subject: [PATCH] build workflow edited --- .github/workflows/build.yaml | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3c82e41..b54ce1a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,34 +10,17 @@ on: jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - java-version: - - 8 - - 11 - - 17 + runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up JDK ${{ matrix.java-version }} + - uses: actions/checkout@v2 + - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: ${{ matrix.java-version }} - + java-version: '17' + distribution: 'adopt' + - name: Grant execute permission for gradlew + run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew build - - - name: Archive build artifacts - uses: actions/upload-artifact@v2 - with: - name: build-artifacts-${{ matrix.java-version }} - path: build/libs/*.jar # Adjust to your build output directory and file(s) - - - name: Publish Gradle Build Status - uses: badboy/github-action-publish-gradle-status@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: ./gradlew build \ No newline at end of file