Skip to content

Commit

Permalink
chore: add prerelease label to publish to maven local (#203)
Browse files Browse the repository at this point in the history
* chore: add prerelease tag to publish to maven local

* removes newline

* wrap signing in conditional
  • Loading branch information
bshaffer committed Nov 2, 2020
1 parent a7507ab commit 6749f8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
uses: eskatos/gradle-command-action@v1
with:
arguments: build
- name: Publish to Maven Local
if: contains(github.event.pull_request.labels.*.name, 'prerelease')
uses: eskatos/gradle-command-action@v1
with:
arguments: publishToMavenLocal
- name: Build Examples
uses: eskatos/gradle-command-action@v1
with:
Expand Down
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ subprojects {
|| project.name == "grpc-kotlin-stub-lite"
) {
apply plugin: 'maven-publish'
apply plugin: 'signing'

plugins.withId("maven-publish") {
publishing {
Expand Down Expand Up @@ -115,8 +114,11 @@ subprojects {
}
}

signing {
sign publishing.publications
if (project.hasProperty("signing.keyId")) {
apply plugin: 'signing'
signing {
sign publishing.publications
}
}
}

Expand Down

0 comments on commit 6749f8a

Please sign in to comment.