diff --git a/.github/project.yml b/.github/project.yml new file mode 100644 index 0000000..44e93be --- /dev/null +++ b/.github/project.yml @@ -0,0 +1,3 @@ +release: + current-version: "3.9.1-SNAPSHOT" + next-version: "999-SNAPSHOT" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b3155dc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,63 @@ +name: Quarkiverse Release + +on: + workflow_dispatch: + pull_request: + types: [closed] + paths: + - '.github/project.yml' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + +jobs: + release: + runs-on: ubuntu-latest + name: release + if: ${{github.event.pull_request.merged == true}} + + steps: + - uses: radcortez/project-metadata-action@main + name: Retrieve project metadata + id: metadata + with: + github-token: ${{secrets.GITHUB_TOKEN}} + metadata-file-path: '.github/project.yml' + + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: 'maven' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Configure Git author + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - name: Maven release ${{steps.metadata.outputs.current-version}} + run: | + mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} + mvn -B release:perform -Darguments=-DperformRelease -DperformRelease -Prelease -Pquick -pl '!integration-test' + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Push changes to ${{github.base_ref}} branch + run: | + git push + git push origin ${{steps.metadata.outputs.current-version}} \ No newline at end of file diff --git a/pom.xml b/pom.xml index b74c49b..530eb06 100644 --- a/pom.xml +++ b/pom.xml @@ -36,10 +36,6 @@ 3.13.0 3.1.1 - 3.3.1 - 3.1.3 - 3.10.0 - 1.1.0 3.5.0 3.5.0 3.7 @@ -138,13 +134,22 @@ + + io.quarkus + quarkus-maven-plugin + ${quarkus.version} + maven-compiler-plugin ${maven.compiler-plugin.version} + + true + - maven-deploy-plugin - ${maven.deploy-plugin.version} + io.quarkus + quarkus-config-doc-maven-plugin + ${quarkus.version} maven-surefire-plugin @@ -222,52 +227,6 @@ - - deploy - - - - maven-source-plugin - ${maven.source-plugin.version} - - - attach-sources - - jar-no-fork - - - - - - maven-javadoc-plugin - ${maven.javadoc-plugin.version} - - - attach-javadocs - - jar - - - - - - org.simplify4u.plugins - sign-maven-plugin - ${sign-maven-plugin.version} - - - sign-artifacts - verify - - sign - - - - - - - - quick