Skip to content

Commit

Permalink
feat(build): publish to OSSRH Snapshots and MavenCentral from GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Sep 13, 2023
1 parent a3f7386 commit 3933ddf
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/trigger_snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
name: "Create Snapshot Build"
name: "Publish Snapshot Build"

on:
push:
branches:
- main

jobs:
Trigger-Snapshot:
runs-on: ubuntu-latest
# forks cannot trigger Jenkins
if: github.repository == 'eclipse-edc/GradlePlugins'
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/GradlePlugins"
}
job_name: "Publish-Component"
job_timeout: "3600" # Default 30 sec. (optional)
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

- name: Log Jenkins URL
run:
echo "::notice title=Jenkins URL::${{ steps.runjenkins.outputs.jenkins_job_url }} "

0 comments on commit 3933ddf

Please sign in to comment.