-
Notifications
You must be signed in to change notification settings - Fork 108
/
maven-release-publisher.yml
38 lines (38 loc) · 1.39 KB
/
maven-release-publisher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: 0.2
env:
shell: /bin/sh
secrets-manager:
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: awsmobilesdk/android/sonatype:username
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: awsmobilesdk/android/sonatype:password
ORG_GRADLE_PROJECT_signingPassword: awsmobilesdk/android/signing:password
ORG_GRADLE_PROJECT_signingKeyId: awsmobilesdk/android/signing:keyId
ORG_GRADLE_PROJECT_signingInMemoryKey: awsmobilesdk/android/signing:inMemoryKey
phases:
install:
commands:
- echo 'Install phase starting'
finally:
- echo 'Install phase completed.'
pre_build:
commands:
- echo 'Pre-build phase starting'
finally:
- echo 'Pre-build phase completed.'
build:
commands:
- echo 'Build phase starting.'
- |
# List all available gradle tasks, grep for the uploadArchive tasks, and then use cut to strip the
# task description and just return the name of the task, one for each module (e.g. aws-api:publish)
JAVA_HOME=$JDK_8_HOME ./gradlew clean build
for task_name in $(./gradlew tasks --all | grep ":publish " | cut -d " " -f 1); do
echo "Gradle task $task_name"
JAVA_HOME=$JDK_8_HOME ./gradlew $task_name;
done
finally:
- echo 'Build phase completed.'
post_build:
commands:
- echo 'Post-build phase starting'
finally:
- echo 'Post-build phase completed.'