Skip to content

Commit 0f73ad4

Browse files
authored
Merge pull request #391 from camunda-community-hub/infra-833-prepare-sonatype-migration
ci: upgrade camunda-release-parent to 4.0.0 and switch to Central Portal deployment
2 parents 8a40f0a + 8f306b1 commit 0f73ad4

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
name: Build & Verify
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Set up JDK 11
26-
uses: actions/setup-java@v2
26+
uses: actions/setup-java@v4
2727
with:
2828
java-version: '11'
2929
distribution: 'temurin'
@@ -37,7 +37,7 @@ jobs:
3737
run: >
3838
mvn -B verify
3939
- name: Archive Test Results on Failure
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
if: failure()
4242
with:
4343
name: test-results

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
publish:
2222
runs-on: ubuntu-20.04
2323
steps:
24-
- uses: actions/checkout@v3 # pin@v2
24+
- uses: actions/checkout@v4
2525
- name: Cache
26-
uses: actions/cache@ac8075791e805656e71b4ba23325ace9e3421120 # pin@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: ~/.m2/repository
2929
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -36,12 +36,16 @@ jobs:
3636
gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }}
3737
gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE
3838
- name: Deploy SNAPSHOT / Release
39-
uses: camunda-community-hub/community-action-maven-release@a9e964bf56978eef9bca81551cecceebb246a8e5 # pin@v1
39+
uses: camunda-community-hub/community-action-maven-release@v2
4040
with:
4141
release-version: ${{ github.event.release.tag_name }}
4242
release-profile: community-action-maven-release
4343
nexus-usr: ${{ secrets.NEXUS_USR }}
4444
nexus-psw: ${{ secrets.NEXUS_PSW }}
45+
sonatype-central-portal-usr: ${{ secrets.COMMUNITY_HUB_MAVEN_CENTRAL_CP_USR }}
46+
sonatype-central-portal-psw: ${{ secrets.COMMUNITY_HUB_MAVEN_CENTRAL_CP_PSW }}
47+
# maven-usr, maven-psw and maven-url are deprecated; they are required only for publishing to the legacy OSS Sonatype repository.
48+
# Once the io.zeebe namespace is migrated to the Sonatype Central Portal, these can be safely removed.
4549
maven-usr: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_USR }}
4650
maven-psw: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_PSW }}
4751
maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.camunda</groupId>
2121
<artifactId>camunda-release-parent</artifactId>
22-
<version>3.9.1</version>
22+
<version>4.0.0</version>
2323
<!-- do not remove empty tag - http://jira.codehaus.org/browse/MNG-4687 -->
2424
<relativePath />
2525
</parent>

0 commit comments

Comments
 (0)