Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,22 @@ jobs:
- name: Run tests before publish
run: ./gradlew :phosphor-core:jvmTest

- name: Decode signing key
if: ${{ github.event.inputs.dry_run != 'true' }}
env:
SIGNING_KEY_BASE64: ${{ secrets.SIGNING_KEY }}
run: echo "$SIGNING_KEY_BASE64" | base64 -d > /tmp/signing-key.asc

- name: Publish to Maven Central
if: ${{ github.event.inputs.dry_run != 'true' }}
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew :phosphor-core:publishAllPublicationsToMavenCentralRepository
run: |
export ORG_GRADLE_PROJECT_signingInMemoryKey="$(cat /tmp/signing-key.asc)"
./gradlew :phosphor-core:publishAllPublicationsToMavenCentralRepository

- name: Dry run publish
if: ${{ github.event.inputs.dry_run == 'true' }}
Expand Down