diff --git a/.github/workflows/merge_request.yml b/.github/workflows/merge_request.yml new file mode 100644 index 00000000..247e9ded --- /dev/null +++ b/.github/workflows/merge_request.yml @@ -0,0 +1,10 @@ +name: merge request + +on: + pull_request: + branches: + - 'master' + +jobs: + check: + uses: tinkoff-mobile-tech/workflows/.github/workflows/android_lib.merge_request.yml@v1 \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..734bc0a1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,13 @@ +name: publish + +on: + workflow_dispatch: + +jobs: + publish: + uses: tinkoff-mobile-tech/workflows/.github/workflows/android_lib.publish.yml@v1 + with: + java_version: '8' + secrets: + gpg_key: ${{ secrets.GPG_KEY }} + sign_ossrh_gradle_properties: ${{ secrets.SIGN_OSSRH_GRADLE_PROPERTIES }} diff --git a/gradle/publish.gradle b/gradle/publish.gradle index ed68684d..6f158bdb 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -15,11 +15,11 @@ def getSnapshotRepositoryUrl() { } def getRepositoryUsername() { - return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : '' + return hasProperty('ossrhUsername') ? ossrhUsername : '' } def getRepositoryPassword() { - return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : '' + return hasProperty('ossrhPassword') ? ossrhPassword : '' } afterEvaluate {