Skip to content

Commit 13d02f4

Browse files
Merge pull request #9037 from mandy-chessell/oak2026
Move Maven publishing after container publishing
2 parents ad24ff4 + ea2a8dd commit 13d02f4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/release-v6.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,6 @@ jobs:
4646
with:
4747
distribution: 'temurin'
4848
java-version: '17'
49-
- name: build and publish to maven central
50-
uses: gradle/gradle-build-action@v3
51-
with:
52-
cache-read-only: false
53-
arguments: build publish -Dorg.gradle.parallel=false -Dorg.gradle.caching=false
54-
# Import secrets needed for code signing and distribution
55-
env:
56-
OSSRH_GPG_KEYID: ${{ secrets.OSSRH_GPG_KEYID }}
57-
OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
58-
OSSRH_GPG_PRIVATE_KEY: ${{ secrets.OSSRH_GPG_PRIVATE_KEY }}
59-
ORG_GRADLE_PROJECT_mavenRepoUrl: https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/
60-
ORG_GRADLE_PROJECT_mavenRepoPass: ${{ secrets.OSSRH_TOKEN }}
61-
ORG_GRADLE_PROJECT_mavenRepoUser: ${{ secrets.OSSRH_USERNAME }}
6249
# QEMU is needed for ARM64 build for egeria-configure
6350
# egeria-configure needs to install utilities
6451
- name: Set up QEMU
@@ -78,6 +65,19 @@ jobs:
7865
tags: odpi/egeria-platform:${{ env.VERSION }}, odpi/egeria-platform:stable, quay.io/odpi/egeria-platform:${{ env.VERSION }}, quay.io/odpi/egeria-platform:stable
7966
context: ./open-metadata-distribution/omag-server-platform/build/unpacked/egeria-platform-${{ env.VERSION }}-distribution.tar.gz
8067
platforms: linux/amd64,linux/arm64
68+
- name: build and publish to maven central
69+
uses: gradle/gradle-build-action@v3
70+
with:
71+
cache-read-only: false
72+
arguments: build publish -Dorg.gradle.parallel=false -Dorg.gradle.caching=false
73+
# Import secrets needed for code signing and distribution
74+
env:
75+
OSSRH_GPG_KEYID: ${{ secrets.OSSRH_GPG_KEYID }}
76+
OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
77+
OSSRH_GPG_PRIVATE_KEY: ${{ secrets.OSSRH_GPG_PRIVATE_KEY }}
78+
ORG_GRADLE_PROJECT_mavenRepoUrl: https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/
79+
ORG_GRADLE_PROJECT_mavenRepoPass: ${{ secrets.OSSRH_TOKEN }}
80+
ORG_GRADLE_PROJECT_mavenRepoUser: ${{ secrets.OSSRH_USERNAME }}
8181
# Mostly for verification - not published to the release itself for now
8282
- name: Upload assemblies
8383
uses: actions/upload-artifact@v4.4.0

0 commit comments

Comments
 (0)