Skip to content

Commit b542d53

Browse files
committed
Remove obsolete "Wait for Maven Central" job
Since the "Publish to Maven Central" job now waits for the deployment to reach "published" state, there's no longer a need to poll Maven Central for the deployed artifacts. Moreover, "Create GitHub release" now waits for both "Publish documentation" and "Update samples" to be successful.
1 parent 111fc97 commit b542d53

File tree

2 files changed

+2
-33
lines changed

2 files changed

+2
-33
lines changed

.github/scripts/waitForMavenCentralSync.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ jobs:
6666
uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0
6767
with:
6868
subject-path: build/repo/**/*.jar
69-
- name: Upload local repository for later jobs
70-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
71-
with:
72-
name: local-maven-repository
73-
path: build/repo
7469

7570
verify_consumability:
7671
name: Verify consumability
@@ -223,30 +218,9 @@ jobs:
223218
curl --silent --fail --location --output /tmp/junit-user-guide.pdf "${{ steps.pagesDeployment.outputs.pdfUrl }}"
224219
pdfinfo /tmp/junit-user-guide.pdf
225220
226-
wait_for_maven_central:
227-
name: Wait for Maven Central
228-
needs: publish_deployment
229-
runs-on: ubuntu-latest
230-
steps:
231-
- name: Check out repository
232-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
233-
with:
234-
fetch-depth: 1
235-
ref: "refs/tags/${{ env.RELEASE_TAG }}"
236-
- name: Download local Maven repository
237-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
238-
with:
239-
name: local-maven-repository
240-
path: build/repo
241-
- name: Wait for sync to Maven Central
242-
if: ${{ inputs.dryRun == false }}
243-
timeout-minutes: 30
244-
run: |
245-
find build/repo -name '*.pom' -printf './.github/scripts/waitForMavenCentralSync.sh %P\n' | sh
246-
247221
update_samples:
248222
name: Update samples
249-
needs: wait_for_maven_central
223+
needs: publish_deployment
250224
runs-on: ubuntu-latest
251225
steps:
252226
- name: Check out samples repository
@@ -287,7 +261,7 @@ jobs:
287261
create_github_release:
288262
name: Create GitHub release
289263
if: ${{ inputs.dryRun == false }}
290-
needs: wait_for_maven_central
264+
needs: [ publish_documentation, update_samples ]
291265
runs-on: ubuntu-latest
292266
permissions:
293267
contents: write

0 commit comments

Comments
 (0)