Skip to content

Commit

Permalink
Create publish-snapshot.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindbuilt authored Feb 12, 2024
1 parent eb1432d commit d2eded9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish - Snapshot

on:
push:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Check whether the version is a snapshot
run: |
if grep -q "\-SNAPSHOT" ./contentstack/build.gradle
then
:
else
exit 1
fi
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Publish the SDK - Snapshot
run: |
./gradlew clean build
./gradlew publishAllPublicationsToMavenCentralRepository
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 d2eded9

Please sign in to comment.