Skip to content

Commit

Permalink
Create publish-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindbuilt authored Feb 12, 2024
1 parent 3acb124 commit 7c0b706
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish - Release

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Gradle build and clean
run: |
./gradlew clean build
- name: Publish the SDK
run: |
./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername=${{ secrets.mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword=${{ secrets.mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey=${{ secrets.signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId=${{ secrets.signingInMemoryKeyId }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=${{ secrets.signingInMemoryKeyPassword }}

0 comments on commit 7c0b706

Please sign in to comment.