diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 57038e2..3b0c342 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,4 +1,3 @@ -# see https://github.com/camunda-community-hub/community-action-maven-release name: Deploy artifacts with Maven on: push: @@ -9,33 +8,32 @@ jobs: publish: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - name: Cache - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + - name: Checks out code + uses: actions/checkout@v4 + - name: Set up Java environment - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - java-version: 17 + java-version: 21 + distribution: temurin + cache: maven gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }} - gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }} + gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE + - name: Deploy SNAPSHOT / Release - uses: camunda-community-hub/community-action-maven-release@v1.1.0 + uses: camunda-community-hub/community-action-maven-release@v1.2.1 with: release-version: ${{ github.event.release.tag_name }} - release-profile: community-action-maven-release nexus-usr: ${{ secrets.NEXUS_USR }} nexus-psw: ${{ secrets.NEXUS_PSW }} - maven-usr: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_USR }} - maven-psw: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_PSW }} + maven-usr: ${{ secrets.COMMUNITY_HUB_MAVEN_CENTRAL_OSS_USR }} + maven-psw: ${{ secrets.COMMUNITY_HUB_MAVEN_CENTRAL_OSS_PSW }} maven-url: oss.sonatype.org maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }} + maven-auto-release-after-close: true github-token: ${{ secrets.GITHUB_TOKEN }} id: release + - if: github.event.release name: Attach artifacts to GitHub Release (Release only) uses: actions/upload-release-asset@v1 @@ -45,4 +43,4 @@ jobs: upload_url: ${{ github.event.release.upload_url }} asset_path: ${{ steps.release.outputs.artifacts_archive_path }} asset_name: ${{ steps.release.outputs.artifacts_archive_path }} - asset_content_type: application/zip + asset_content_type: application/zip \ No newline at end of file diff --git a/pom.xml b/pom.xml index fc24279..c174892 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ org.camunda.community community-hub-release-parent - 1.4.2 + 1.4.4