diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 3b04b8b7..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Build - -on: - workflow_call: - - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee - with: - arguments: build \ No newline at end of file diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 8ed642c7..603635a1 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -5,13 +5,11 @@ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Build & Snapshot publishing +name: on-merge on: push: branches: [ master, main ] - pull_request: - branches: [ master, main ] permissions: packages: write @@ -24,7 +22,15 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: ./.github/workflows/build.yml@main + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee + with: + arguments: build # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle - name: Publish to Sonatype (Maven) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 31fe0c23..b317d746 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -5,7 +5,7 @@ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Gradle PR +name: PR on: pull_request: @@ -22,4 +22,12 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: ./.github/workflows/build.yml@main \ No newline at end of file + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee + with: + arguments: build \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3956bdf9..1cf6ba47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ # This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle -name: Build & Package +name: Release on: release: @@ -21,7 +21,15 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: ./.github/workflows/build.yml@main + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee + with: + arguments: build # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle - name: Publish to Sonatype (Maven)