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 2020 export SHOULD_PUBLISH=true
2121
2222 printf %" s\n" " Attempting to build and publish version $THE_VERSION "
23- " $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 --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
23+ # 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
25+ # 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
2527
2628 echo $RESULT
2729
You can’t perform that action at this time.
0 commit comments