From 0f7816e71b1be401acaca9d2fbebf3ac7f085a45 Mon Sep 17 00:00:00 2001 From: Paul Latzelsperger Date: Wed, 13 Sep 2023 18:55:53 +0200 Subject: [PATCH] feat(build): publish to OSSRH Snapshots and MavenCentral from GHA --- .github/workflows/trigger_snapshot.yml | 30 +++++--------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/trigger_snapshot.yml b/.github/workflows/trigger_snapshot.yml index c733bd74..6c602690 100644 --- a/.github/workflows/trigger_snapshot.yml +++ b/.github/workflows/trigger_snapshot.yml @@ -1,4 +1,4 @@ -name: "Create Snapshot Build" +name: "Publish Snapshot Build" on: push: @@ -6,27 +6,7 @@ on: - main jobs: - Trigger-Snapshot: - runs-on: ubuntu-latest - steps: - # Trigger EF Jenkins. This job waits for Jenkins to complete the publishing, which may take a long time, because every - # module is signed individually, and parallelism is not available. Hence, the increased timeout of 3600 seconds. - # There is no way to cancel the process on Jenkins from withing GitHub. - - name: Call Jenkins API to trigger build - id: runjenkins - uses: toptal/jenkins-job-trigger-action@master - with: - jenkins_url: "https://ci.eclipse.org/edc/" - jenkins_user: ${{ secrets.EF_JENKINS_USER }} - jenkins_token: ${{ secrets.EF_JENKINS_TOKEN }} - # empty params are needed, otherwise the job will fail. - job_params: | - { - "REPO": "https://github.com/eclipse-edc/Technology-Aws" - } - job_name: "Publish-Component" - job_timeout: "3600" # Default 30 sec. (optional) - - - name: Log Jenkins URL - run: - echo "::notice title=Jenkins URL::${{ steps.runjenkins.outputs.jenkins_job_url }} " + Publish-Snapshot: + # This workflow will abort if the required secrets don't exist + uses: eclipse-edc/.github/.github/workflows/publish-snapshot.yml@main + secrets: inherit