Skip to content

Commit

Permalink
Await artifact on maven central on release (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz authored Feb 19, 2024
1 parent 8ee34b9 commit 06ca554
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ on:
description: If set, run a dry-run release
default: false
type: boolean
skip_maven_deploy:
description: |
If enabled, the deployment to maven central will be skipped.
Select this if the deployment job for this release failed in a previous version but the release was actually published.
Check manually on maven central beforehand!
type: boolean
required: true
default: false

permissions:
contents: read
Expand Down Expand Up @@ -47,6 +55,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ ! inputs.skip_maven_deploy }}
needs:
- validate-tag
steps:
Expand Down Expand Up @@ -85,10 +94,22 @@ jobs:
:ghost: [${{ github.repository }}] Release *${{ github.ref_name }}* didn't get triggered in Buildkite.
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
await-maven-central-artifact:
runs-on: ubuntu-latest
name: Wait for release to be available on maven-central
needs:
- validate-tag
steps:
- uses: elastic/apm-pipeline-library/.github/actions/await-maven-artifact@current
with:
groupid: 'co.elastic.logging'
artifactid: 'ecs-logging-core'
version: ${{ inputs.version }}

post-release:
name: "Bump versions and create PR"
needs:
- release
- await-maven-central-artifact
uses: ./.github/workflows/pre-post-release.yml
permissions:
contents: write
Expand Down

0 comments on commit 06ca554

Please sign in to comment.