From 0573abdd30e60a83e912426aeb0f369fc1f0157f Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Sat, 23 Sep 2023 18:55:34 +0200 Subject: [PATCH 1/3] ci: use java 21 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6210964eb..bb99ad773 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '11', '17' ] + java: [ '11', '21' ] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Set up JDK 11 From a3d34f2eff01cdbe45e307fb8143fbdabfe74a61 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Mon, 23 Oct 2023 02:11:09 +0200 Subject: [PATCH 2/3] chore(lgtm): remove configuration --- lgtm.yml | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 lgtm.yml diff --git a/lgtm.yml b/lgtm.yml deleted file mode 100644 index 746b0bc9e..000000000 --- a/lgtm.yml +++ /dev/null @@ -1,4 +0,0 @@ -extraction: - java: - index: - java_version: 9 From 7542ff0408bac08603bb5a0ff99458cd79e73a56 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Mon, 23 Oct 2023 02:30:37 +0200 Subject: [PATCH 3/3] ci: create release --- .github/workflows/ci.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb99ad773..4876db5e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,17 @@ name: CI -on: [pull_request, push] +on: + pull_request: + push: + branches: + - alpha + - beta + - master + - renovate/** jobs: prepare_jobs: - name: 'Prepare: job optimization' + name: "Prepare: job optimization" runs-on: ubuntu-latest outputs: pr_found: ${{ steps.pr.outputs.pr_found }} @@ -16,19 +23,20 @@ jobs: filterOutClosed: true sha: ${{ github.event.pull_request.head.sha }} build: + name: Build needs: prepare_jobs if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request' runs-on: ubuntu-latest strategy: matrix: - java: [ '11', '21' ] + java: ["11", "21"] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - - name: Set up JDK 11 + - name: Set up JDK uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} - distribution: 'adopt' + distribution: "adopt" cache: maven - name: Build with Maven run: mvn -B package --file pom.xml @@ -48,3 +56,8 @@ jobs: ./ci/before-deploy.sh cp ./ci/.m2.settings.xml $HOME/.m2/settings.xml mvn deploy -P release -DskipTests=true + - name: Create release + if: startsWith(github.ref, 'refs/tags/') && matrix.java == 11 + run: npx changelogithub + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}