Skip to content

Commit

Permalink
Updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi committed Oct 11, 2024
1 parent 87198bb commit 6236779
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/release-gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
release:
types: [ created ]

env:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEYID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.NEXUS_PASSWORD }}

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -22,16 +29,6 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Setup Keyring
id: keyring
env:
KEYRING_FILE: ${{ runner.temp }}/publish-keyring.gpg
DATA: ${{ secrets.SIGNING_KEYRING }}
run: |
echo "Creating Keyring file at $KEYRING_FILE"
echo $DATA | base64 -di > $KEYRING_FILE
echo "keyringFile=$KEYRING_FILE" >> "$GITHUB_OUTPUT"
- name: Sanity Check
run: |
./gradlew \
Expand All @@ -41,17 +38,11 @@ jobs:
- name: Publish to Maven Local
run: |
./gradlew \
-Psigning.keyId="${{ secrets.SIGNING_KEYID }}" \
-Psigning.password="${{ secrets.SIGNING_PASSWORD }}" \
-Psigning.secretKeyRingFile="${{ steps.keyring.outputs.keyringFile }}" \
sdk:publishToMavenLocal sdk-compose:publishToMavenLocal
- name: Publish to Maven
run: |
./gradlew \
-Psigning.keyId="${{ secrets.SIGNING_KEYID }}" \
-Psigning.password="${{ secrets.SIGNING_PASSWORD }}" \
-Psigning.secretKeyRingFile="${{ steps.keyring.outputs.keyringFile }}" \
-PNEXUS_USERNAME="${{ secrets.NEXUS_USERNAME }}" \
-PNEXUS_PASSWORD="${{ secrets.NEXUS_PASSWORD }}" \
sdk:publish sdk-compose:publish

0 comments on commit 6236779

Please sign in to comment.