From 0e6933bd9e53c28c5cfd091f8fd8e09d1c22be41 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 14 Apr 2025 09:42:56 +0200 Subject: [PATCH] Switch to automated release --- .github/project.yml | 4 ++++ .github/workflows/mvn-build.yml | 2 ++ .github/workflows/pre-release.yml | 16 ++++++++++++++ .github/workflows/release-perform.yml | 28 +++++++++++++++++++++++ .github/workflows/release-prepare.yml | 19 ++++++++++++++++ README.md | 8 +++++++ pom.xml | 32 ++++----------------------- 7 files changed, 81 insertions(+), 28 deletions(-) create mode 100644 .github/project.yml create mode 100644 .github/workflows/pre-release.yml create mode 100644 .github/workflows/release-perform.yml create mode 100644 .github/workflows/release-prepare.yml diff --git a/.github/project.yml b/.github/project.yml new file mode 100644 index 0000000..cb3265b --- /dev/null +++ b/.github/project.yml @@ -0,0 +1,4 @@ +release: + current-version: "3.4" + next-version: "3.4.SP1-SNAPSHOT" + diff --git a/.github/workflows/mvn-build.yml b/.github/workflows/mvn-build.yml index 1bfdad7..ede3c53 100644 --- a/.github/workflows/mvn-build.yml +++ b/.github/workflows/mvn-build.yml @@ -3,6 +3,8 @@ name: "CI - JDK 17 Build" on: push: branches: [ main ] + paths-ignore: + - '.github/project.yml' pull_request: branches: [ main ] diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 0000000..cc81f90 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,16 @@ +name: Quarkus Pre Release + +on: + pull_request: + paths: + - '.github/project.yml' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + pre-release: + name: Pre-Release + uses: quarkusio/.github/.github/workflows/pre-release.yml@main + secrets: inherit diff --git a/.github/workflows/release-perform.yml b/.github/workflows/release-perform.yml new file mode 100644 index 0000000..e53b90a --- /dev/null +++ b/.github/workflows/release-perform.yml @@ -0,0 +1,28 @@ +name: Quarkus Perform Release +run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release +on: + push: + tags: + - '*' + workflow_dispatch: + inputs: + tag: + description: 'Tag to release' + required: true + +permissions: + attestations: write + id-token: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + perform-release: + name: Perform Release + uses: quarkusio/.github/.github/workflows/perform-release.yml@main + secrets: inherit + with: + version: ${{github.event.inputs.tag || github.ref_name}} diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml new file mode 100644 index 0000000..7a9f22c --- /dev/null +++ b/.github/workflows/release-prepare.yml @@ -0,0 +1,19 @@ +name: Quarkus Prepare Release + +on: + workflow_dispatch: + pull_request: + types: [ closed ] + paths: + - '.github/project.yml' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + prepare-release: + name: Prepare Release + if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}} + uses: quarkusio/.github/.github/workflows/prepare-release.yml@main + secrets: inherit \ No newline at end of file diff --git a/README.md b/README.md index 7621148..7c28e6f 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,11 @@ This is a Spring Data API only dependency. The idea is to have only the classes used by Quarkus (and the transitive dependencies) This absolutely minimum dependencies would be a great benefit to reduce the footprint of Quarkus applications using the spring data modules. + +## Release + +To release a new version, follow these steps: + +https://github.com/smallrye/smallrye/wiki/Release-Process#releasing + +The staging repository is automatically closed. The sync with Maven Central should take ~30 minutes. diff --git a/pom.xml b/pom.xml index 77ac7d6..79bf70e 100644 --- a/pom.xml +++ b/pom.xml @@ -35,9 +35,7 @@ 3.6.0 - 1.7.0 3.3.1 - 3.2.7 3.1.1 3.11.2 17 @@ -78,18 +76,6 @@ release - - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-maven-plugin.version} - true - - https://s01.oss.sonatype.org/ - ossrh - true - true - - org.apache.maven.plugins maven-release-plugin @@ -97,6 +83,10 @@ true @{project.version} + + false + true + false @@ -125,20 +115,6 @@ - - org.apache.maven.plugins - maven-gpg-plugin - ${maven-gpg-plugin.version} - - - sign-artifacts - verify - - sign - - - -