From 56f6a5060d82b05092212e5606d3b9ac2ab47d03 Mon Sep 17 00:00:00 2001 From: Bram Date: Sat, 27 Jul 2024 22:40:26 +0900 Subject: [PATCH 1/3] Removed: Old JitPack configuration file --- jitpack.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 jitpack.yml diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index 314c598..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,15 +0,0 @@ -jdk: - - temurin-21 - -stages: - - name: build - - name: publish - depends_on: build - -build: - script: - - ./gradlew build - -publish: - script: - - ./gradlew publishToMavenLocal \ No newline at end of file From f75ecd85ae1ed560c9e3719a9d1210798c323955 Mon Sep 17 00:00:00 2001 From: Bram Date: Sat, 27 Jul 2024 22:56:34 +0900 Subject: [PATCH 2/3] Updated: Gradle to build upon each commit and pull request --- .../{gradle-publish.yml => gradle.yml} | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) rename .github/workflows/{gradle-publish.yml => gradle.yml} (77%) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle.yml similarity index 77% rename from .github/workflows/gradle-publish.yml rename to .github/workflows/gradle.yml index cfa4565..8e98047 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle.yml @@ -1,8 +1,10 @@ -name: Gradle Package +name: Build & Upload on: - release: - types: [ created ] + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: build: @@ -12,15 +14,12 @@ jobs: packages: write steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 - name: Set up JDK 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '21' - distribution: 'adopt' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file + distribution: 'temurin' - name: Build with Gradle run: chmod +x gradlew && ./gradlew build From 8488b16006c265efc15dd2ff38eb76c60c5642f3 Mon Sep 17 00:00:00 2001 From: Bram Date: Sat, 27 Jul 2024 22:57:48 +0900 Subject: [PATCH 3/3] Fix master branch being called main branch in the build workflow --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 8e98047..da8e18a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -2,9 +2,9 @@ name: Build & Upload on: push: - branches: [ "main" ] + branches: [ "master" ] pull_request: - branches: [ "main" ] + branches: [ "master" ] jobs: build: