Skip to content

Commit

Permalink
experiment client => sdk, publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
livesalmonbrain committed Jun 24, 2022
1 parent ecf7f4b commit 1681f7a
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Publish package to Maven Central and PIP
on:
release:
types: [created]
tags: ruleofthumb.*
jobs:
publishJvmOnMavenCentral:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,6 +45,29 @@ jobs:
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }}
PGP_KEY: ${{ secrets.PGP_KEY }}
PGP_PWD: ${{ secrets.PGP_PWD }}
publishClientJvmOnMavenCentral:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Perform build
run: ./gradlew :experiment-client:build :experiment-client:publishToMavenLocal
- name: Release to Maven Central
run: ./gradlew :experiment-client:publishToSonatype closeAndReleaseStagingRepository -i
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }}
PGP_KEY: ${{ secrets.PGP_KEY }}
PGP_PWD: ${{ secrets.PGP_PWD }}
publishPython:
needs: publishJvmOnMavenCentral
runs-on: ubuntu-latest
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/publish_experiment_sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ame: Publish SDK package to Maven Central
on:
release:
types: [created]
tags: sdk.*
jobs:
publishClientJvmOnMavenCentral:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Perform build
run: ./gradlew :experiment-client:build :experiment-client:publishToMavenLocal
- name: Release to Maven Central
run: ./gradlew :experiment-client:publishToSonatype closeAndReleaseStagingRepository -i
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }}
PGP_KEY: ${{ secrets.PGP_KEY }}
PGP_PWD: ${{ secrets.PGP_PWD }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ dependencies {

test {
useTestNG()
}
}

archivesBaseName = "${project.name}"

apply from: "$rootDir/gradle/java-publication.gradle"
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = 'salmon-brain'
include ('ruleofthumb', 'experiment-admin', 'experiment-admin-ui', 'experiment-api-commons', 'experiment-client')
include ('ruleofthumb', 'experiment-admin', 'experiment-admin-ui', 'experiment-api-commons', 'experiment-sdk')

0 comments on commit 1681f7a

Please sign in to comment.