Skip to content

Commit

Permalink
fix pushRelease II
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Jan 18, 2022
1 parent 6c779a4 commit 7b6d6fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import groovy.json.JsonSlurper
import org.eclipse.jgit.transport.CredentialsProvider

import java.nio.charset.StandardCharsets
import net.ltgt.gradle.errorprone.CheckSeverity

Expand Down Expand Up @@ -140,9 +142,8 @@ task getArtifactPath{

task pushRelease(dependsOn: requireClean){
doLast{
def git = indraGit.git()
git.tag().setAnnotated(true).setName("v" + metadata.version).setMessage(file("$rootDir/CHANGELOG.md").text).call()
git.push().setRemote("origin").setPushOptions(List.of("--tags")).call()
exec{ commandLine("git"); args("tag", "-s", "v$metadata.version", "-F", "./CHANGELOG.md") }
exec{ commandLine("git"); args("push", "origin", "--tags") }
}
}

Expand Down

0 comments on commit 7b6d6fa

Please sign in to comment.