-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
26 lines (24 loc) · 985 Bytes
/
.gitlab-ci.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
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/fabernovel/android:api-33-gcloud-ndk-v1.8.0
workflow:
rules:
- if: $CI_COMMIT_TAG
build-and-publish:
stage: build
variables:
ORG_GRADLE_PROJECT_mavenCentralUsername: $MAVEN_CENTRAL_USERNAME
ORG_GRADLE_PROJECT_mavenCentralPassword: $MAVEN_CENTRAL_PASSWORD
ORG_GRADLE_PROJECT_signingInMemoryKey: $SONARTYPE_GPG_EXPORTED
ORG_GRADLE_PROJECT_signingInMemoryKeyId: $SONATYPE_KEY_ID
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: $SONATYPE_PASSWORD
script:
- mkdir ./.gradle/
- echo nexusOptions.repositoryPassword=$NEXUS_PWD > ./.gradle/gradle.properties
- echo nexusOptions.repositoryUsername=primerapi >> ./.gradle/gradle.properties
- echo nexusOptions.stagingProfile=io.primer >> ./.gradle/gradle.properties
- ./gradlew publish --stacktrace && ./gradlew closeAndReleaseRepository
rules:
- if: $CI_COMMIT_TAG
artifacts:
paths:
- ipay88/build/outputs/
when: manual