Skip to content

Commit

Permalink
Adding steps and env variables to build and publish to maven using gr…
Browse files Browse the repository at this point in the history
…adle plugin (#979)
  • Loading branch information
jainr authored Jan 18, 2023
1 parent 2c87b8a commit c0b38d5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/publish-to-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,20 @@ jobs:

# CI release command defaults to publishSigned
# Sonatype release command defaults to sonaTypeBundleRelease
- name: Gradle publish
run: gradle clean publish
# Changing env names as documented here - https://vanniktech.github.io/gradle-maven-publish-plugin/central/#secrets
- name: Gradle Build and Publish to Maven central
run: |
./gradlew publish
./gradlew closeAndReleaseRepository
env:
PGP_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
PGP_SECRET: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}

# Publish Released Fat Jar to Blob Storage
- name: Gradle build
run: |
run: |
./gradlew build
# remote folder for CI upload
echo "CI_SPARK_REMOTE_JAR_FOLDER=feathr_jar_release" >> $GITHUB_ENV
Expand Down

0 comments on commit c0b38d5

Please sign in to comment.