-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): publish to OSSRH Snapshots and MavenCentral from GHA
- Loading branch information
1 parent
cd0df2b
commit 0f7816e
Showing
1 changed file
with
5 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
name: "Create Snapshot Build" | ||
name: "Publish Snapshot Build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 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 |