Skip to content

Commit

Permalink
Merge pull request #84 from Tinkoff/add_workflow
Browse files Browse the repository at this point in the history
Add workflow
  • Loading branch information
Nov1kov authored Feb 22, 2022
2 parents 764f57a + ece9404 commit 6deb46f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/merge_request.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6deb46f

Please sign in to comment.