File tree 2 files changed +48
-2
lines changed
2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish - Snapshot
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - fix/DX-653-publish-snapshot
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout project sources
13
+ uses : actions/checkout@v3
14
+ - name : Check whether the version is a snapshot
15
+ run : |
16
+ if grep -q "\-SNAPSHOT" ./contentstack/build.gradle
17
+ then
18
+ :
19
+ else
20
+ exit 1
21
+ fi
22
+ - name : Setup Gradle
23
+ uses : gradle/gradle-build-action@v2
24
+ - name : Setup local.properties
25
+ run : |
26
+ cat << EOF >> local.properties
27
+ sdk.dir=$ANDROID_HOME
28
+ host="${{ secrets.HOST }}"
29
+ APIKey="${{ secrets.API_KEY }}"
30
+ deliveryToken="${{ secrets.DELIVERY_TOKEN }}"
31
+ environment="${{ secrets.ENVIRONMENT }}"
32
+ contentType="${{ secrets.CONTENT_TYPE }}"
33
+ assetUid="${{ secrets.ASSET_UID }}"
34
+ EOF
35
+ - name : Build the SDK - Snapshot
36
+ run : |
37
+ ./gradlew clean build
38
+ - name : Publish the SDK - Snapshot
39
+ run : |
40
+ ./gradlew publishAllPublicationsToMavenCentralRepository
41
+ env :
42
+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.mavenCentralUsername }}
43
+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.mavenCentralPassword }}
44
+ ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.signingInMemoryKey }}
45
+ ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.signingInMemoryKeyId }}
46
+ ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.signingInMemoryKeyPassword }}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ android.buildFeatures.buildConfig true
10
10
mavenPublishing {
11
11
publishToMavenCentral(SonatypeHost . DEFAULT )
12
12
signAllPublications()
13
- coordinates(" com.contentstack.sdk" , " android" , " 3.15.1" )
13
+ coordinates(" com.contentstack.sdk" , " android" , " 3.15.1-SNAPSHOT " )
14
14
15
15
pom {
16
16
name = " contentstack-android"
@@ -99,7 +99,7 @@ android {
99
99
defaultConfig {
100
100
// Required when setting minSdkVersion to 20 or lower
101
101
multiDexEnabled true
102
- minSdkVersion 23
102
+ minSdk 24
103
103
versionCode 1
104
104
versionName " 1.0"
105
105
useLibrary ' org.apache.http.legacy'
You can’t perform that action at this time.
0 commit comments