From 2b921c08991dc4288aa40533fcfa703ee97cd7fb Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Mon, 29 Jul 2024 10:04:03 +0200 Subject: [PATCH] CI/CD check --- .github/workflows/check.yml | 29 ++++++----------------------- .github/workflows/release.yml | 24 ------------------------ 2 files changed, 6 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 83a5b76..64f305d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,6 +1,3 @@ -# This workflow will build a Java project with Gradle -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - name: Check on: @@ -16,23 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: adopt - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build with Gradle - run: ./gradlew build + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + - run: mvn --batch-mode clean package verify diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 470d950..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Release - -on: workflow_dispatch - -jobs: - release: - name: Run Gradle - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - uses: fregante/setup-git-user@v1 - - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: adopt - - - name: Build, release then publish assets - run: | - ./gradlew -i -S fullRelease \ - -Pgithub.token=${{ secrets.GITHUB_TOKEN }}