-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial GitHub Action workflows to build Java client v3
- Loading branch information
1 parent
e40023f
commit 4181867
Showing
3 changed files
with
94 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Java Client v3 CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'conductor-clients/java/conductor-java-sdk/**' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'conductor-clients/java/conductor-java-sdk/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-java-client-v3: | ||
uses: ./conductor-clients/java/conductor-java-sdk/.github/java-client-v3-ci.yml |
33 changes: 33 additions & 0 deletions
33
conductor-clients/java/conductor-java-sdk/.github/workflows/java-client-build.yml
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Java Client v3 CI | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Java Client v3 Build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Zulu JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "zulu" | ||
java-version: "17" | ||
- name: Build and run tests | ||
run: | | ||
hostname | ||
echo "host is $HOSTNAME" | ||
cd conductor-clients/java | ||
./gradlew clean build | ||
env: | ||
CONDUCTOR_SERVER_URL: ${{ secrets.CONDUCTOR_SERVER_URL }} | ||
CONDUCTOR_SERVER_AUTH_KEY: ${{ secrets.CONDUCTOR_SERVER_AUTH_KEY }} | ||
CONDUCTOR_SERVER_AUTH_SECRET: ${{ secrets.CONDUCTOR_SERVER_AUTH_SECRET }} | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: 'conductor-clients/java/**/build/test-results/test/TEST-*.xml' | ||
|
43 changes: 43 additions & 0 deletions
43
conductor-clients/java/conductor-java-sdk/.github/workflows/publish-release.yml
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Publish Java Client (v3) to Maven Central | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to publish (e.g., v1.0.0)' | ||
required: true | ||
maven_central: | ||
description: 'Publish to Maven Central' | ||
required: true | ||
default: 'true' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
name: Gradle Build and Publish | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Set up Zulu JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
- name: Publish | ||
run: | | ||
export VERSION="${{ github.event.inputs.version }}" | ||
export CONDUCTOR_CLIENT_VERSION=`echo ${VERSION:1}` | ||
echo Publishing version $CONDUCTOR_CLIENT_VERSION | ||
cd conductor-clients/java | ||
./gradlew publish -Pversion=$CONDUCTOR_CLIENT_VERSION -PmavenCentral=${{ github.event.inputs.maven_central }} -Pusername=${{ secrets.SONATYPE_USERNAME }} -Ppassword=${{ secrets.SONATYPE_PASSWORD }} | ||
env: | ||
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
|