File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish Native Android Library
22
3- on : workflow_dispatch
3+ # on: workflow_dispatch
4+ on :
5+ workflow_dispatch :
6+ push :
7+ branches : [test-publish-android]
48
59jobs :
610 publish-android :
Original file line number Diff line number Diff line change 55
66 <modelVersion >4.0.0</modelVersion >
77 <groupId >io.ionic.libs</groupId >
8- <artifactId >osinappbrowser -android</artifactId >
8+ <artifactId >ioninappbrowser -android</artifactId >
99 <version >1.2.1</version >
1010</project >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ LOG_OUTPUT=./tmp/publish-android.txt
55THE_VERSION=` sed -n ' s/.*<version>\(.*\)<\/version>.*/\1/p' ../pom.xml`
66
77# Get latest io.ionic:portals XML version info
8- PUBLISHED_URL=" https://repo1.maven.org/maven2/io/ionic/libs/osinappbrowser -android/maven-metadata.xml"
8+ PUBLISHED_URL=" https://repo1.maven.org/maven2/io/ionic/libs/ioninappbrowser -android/maven-metadata.xml"
99PUBLISHED_DATA=$( curl -s $PUBLISHED_URL )
1010PUBLISHED_VERSION=" $( perl -ne ' print and last if s/.*<latest>(.*)<\/latest>.*/\1/;' <<< $PUBLISHED_DATA ) "
1111
2121
2222 printf %" s\n" " Attempting to build and publish version $THE_VERSION "
2323 # Publish a release to the Maven repo
24- " $ANDROID_PATH " /gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b " $ANDROID_PATH " /build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
24+ # "$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
2525 # Stage a version
26- # "$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
26+ " $ANDROID_PATH " /gradlew clean build publishReleasePublicationToSonatypeRepository --no-daemon --max-workers 1 -b " $ANDROID_PATH " /build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
2727
2828 echo $RESULT
2929
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ afterEvaluate {
2727 release(MavenPublication ) {
2828 // Coordinates
2929 groupId ' io.ionic.libs'
30- artifactId ' osinappbrowser -android'
30+ artifactId ' ioninappbrowser -android'
3131 version LIB_VERSION
3232
3333 // Two artifacts, the `aar` (or `jar`) and the sources
@@ -41,7 +41,7 @@ afterEvaluate {
4141
4242 // POM Data
4343 pom {
44- name = ' osinappbrowser -android'
44+ name = ' ioninappbrowser -android'
4545 description = ' InAppBrowser Android Lib'
4646 url = ' https://github.com/OutSystems/OSInAppBrowserLib-Android'
4747 licenses {
You can’t perform that action at this time.
0 commit comments