From 6a53a02eb71e17d90dd70cd73a69a2f46f5421c1 Mon Sep 17 00:00:00 2001 From: panax Date: Fri, 5 Jul 2024 15:36:17 +0200 Subject: [PATCH 1/4] [release] ci: :construction_worker: upgrade java version --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdeb5ac..490fc66 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - java_version: [11, 17] + java_version: [19] steps: - name: Environment From 53baecac7b33b7e4aec1042baaa2117ee5d3fdf4 Mon Sep 17 00:00:00 2001 From: panax Date: Fri, 5 Jul 2024 15:37:19 +0200 Subject: [PATCH 2/4] [release] ci: :construction_worker: add release workflow --- .github/workflows/release.yml | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..520f8e7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,66 @@ +name: release +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+" + +permissions: + contents: write + +jobs: + build: + name: Build + runs-on: ubuntu-latest + timeout-minutes: 90 + strategy: + fail-fast: false + matrix: + java_version: [19] + + steps: + - name: Environment + run: env | sort + + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + submodules: true + + - name: Setup Java ${{ matrix.java_version }} + uses: actions/setup-java@v1 + with: + java-version: ${{matrix.java_version}} + architecture: x64 + + - name: Compile + run: ./gradlew assemble + + - name: Tests + run: ./gradlew check + env: + GRADLE_OPTS: "-Dorg.gradle.daemon=false" + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 19 for x64 + uses: actions/setup-java@v3 + with: + java-version: "19" + distribution: "temurin" + architecture: x64 + + - name: build artifacts + run: ./gradlew clean jsonPlugin -x test -P version=${GITHUB_REF#refs/tags/} + + - name: Upload artifact and release + uses: softprops/action-gh-release@v2 + with: + draft: false + prerelease: false + body_path: CHANGELOG.md + files: | + ./plugins/nf-kafka/build/plugin/* From 640e1aa8a920823c8bf51fe4695e542f8c5435f9 Mon Sep 17 00:00:00 2001 From: panax Date: Fri, 5 Jul 2024 15:39:25 +0200 Subject: [PATCH 3/4] Revert "[release] ci: :construction_worker: upgrade java version" This reverts commit 6a53a02eb71e17d90dd70cd73a69a2f46f5421c1. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 490fc66..cdeb5ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - java_version: [19] + java_version: [11, 17] steps: - name: Environment From 8d0ab36b2c078bf00549e0eec6370b8368c8f516 Mon Sep 17 00:00:00 2001 From: panax Date: Fri, 5 Jul 2024 15:39:58 +0200 Subject: [PATCH 4/4] [release] ci: :arrow_down: downgrade java version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 520f8e7..ae85183 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - java_version: [19] + java_version: [11, 17] steps: - name: Environment