Skip to content

Commit 06ca554

Browse files
authored
Await artifact on maven central on release (#236)
1 parent 8ee34b9 commit 06ca554

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ on:
1515
description: If set, run a dry-run release
1616
default: false
1717
type: boolean
18+
skip_maven_deploy:
19+
description: |
20+
If enabled, the deployment to maven central will be skipped.
21+
Select this if the deployment job for this release failed in a previous version but the release was actually published.
22+
Check manually on maven central beforehand!
23+
type: boolean
24+
required: true
25+
default: false
1826

1927
permissions:
2028
contents: read
@@ -47,6 +55,7 @@ jobs:
4755
release:
4856
name: Release
4957
runs-on: ubuntu-latest
58+
if: ${{ ! inputs.skip_maven_deploy }}
5059
needs:
5160
- validate-tag
5261
steps:
@@ -85,10 +94,22 @@ jobs:
8594
:ghost: [${{ github.repository }}] Release *${{ github.ref_name }}* didn't get triggered in Buildkite.
8695
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
8796
97+
await-maven-central-artifact:
98+
runs-on: ubuntu-latest
99+
name: Wait for release to be available on maven-central
100+
needs:
101+
- validate-tag
102+
steps:
103+
- uses: elastic/apm-pipeline-library/.github/actions/await-maven-artifact@current
104+
with:
105+
groupid: 'co.elastic.logging'
106+
artifactid: 'ecs-logging-core'
107+
version: ${{ inputs.version }}
108+
88109
post-release:
89110
name: "Bump versions and create PR"
90111
needs:
91-
- release
112+
- await-maven-central-artifact
92113
uses: ./.github/workflows/pre-post-release.yml
93114
permissions:
94115
contents: write

0 commit comments

Comments
 (0)