Skip to content

Commit

Permalink
Trying alternative approach to passing signing info to tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrell committed Jul 9, 2021
1 parent 498c3ae commit 3cc8d6f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ jobs:
- name: Create JavaDoc and sources jars
run: ./gradlew javadocJar sourcesJar -Prelease=true
- name: Publish to Maven Central Releases repo
run: |
echo ${{ secrets.MAVEN_CENTRAL_KEY }} | awk 'NR == 1 { print "signingKey=" } 1' ORS='\\n' >> gradle.properties
./gradlew publishAllPublicationsToMavenCentralReleasesRepository -Prelease=true -Possrh.username=${{ secrets.OSSRH_USERNAME }} -Possrh.password="${{ secrets.OSSRH_PASSWORD }}"
env:
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.MAVEN_CENTRAL_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_KEY }}
run: |
./gradlew publishAllPublicationsToMavenCentralReleasesRepository -Prelease=true -Possrh.username=${{ secrets.OSSRH_USERNAME }} -Possrh.password="${{ secrets.OSSRH_PASSWORD }}"
- name: Add artifacts to Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 3cc8d6f

Please sign in to comment.