Skip to content

Commit f8fd9ba

Browse files
test: dry-run publish android CI
1 parent 9dfc508 commit f8fd9ba

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/publish-android.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ on:
3838
description: 'Optional. Specify the version of Capacitor the plugins should depend on. Must be in mathematical notation, eg: [4.0,5.0) for 4.x versions only, or [4.0,) for 4.x versions and higher'
3939
required: false
4040
default: ''
41+
push:
42+
branches:
43+
- 'test/ci-android'
44+
4145
jobs:
4246
build:
4347
runs-on: ubuntu-latest

scripts/publish-android.sh

100644100755
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ publish_plugin () {
3636
export CAP_PLUGIN_PUBLISH=true
3737

3838
# Build and publish
39-
"$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
40-
41-
if grep --quiet "BUILD SUCCESSFUL" $LOG_OUTPUT; then
42-
printf %"s\n\n" "Success: $PLUGIN_NAME published to MavenCentral."
43-
else
44-
printf %"s\n\n" "Error publishing $PLUGIN_NAME, check $LOG_OUTPUT for more info! Manually review and release from the Central Portal may be necessary https://central.sonatype.com/publishing/deployments/"
45-
cat $LOG_OUTPUT
46-
exit 1
47-
fi
39+
#"$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
40+
41+
#if grep --quiet "BUILD SUCCESSFUL" $LOG_OUTPUT; then
42+
# printf %"s\n\n" "Success: $PLUGIN_NAME published to MavenCentral."
43+
#else
44+
# printf %"s\n\n" "Error publishing $PLUGIN_NAME, check $LOG_OUTPUT for more info! Manually review and release from the Central Portal may be necessary https://central.sonatype.com/publishing/deployments/"
45+
# cat $LOG_OUTPUT
46+
# #exit 1
47+
#fi
4848
fi
4949
else
5050
printf %"s\n\n" "$PLUGIN_PATH does not appear to be a plugin (has no package.json file or Android package), skipping..."

0 commit comments

Comments
 (0)