Skip to content

Commit 978767a

Browse files
committed
Fix bad changelog
1 parent e51f986 commit 978767a

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 3.1.0 - 2018-04-17
1+
## 3.0.1 - 2018-04-17
22

33
## Improved
44

build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
plugins {
1818
id 'com.github.ben-manes.versions' version '0.14.0'
19+
id 'co.riiid.gradle' version '0.4.2'
1920
}
2021

2122
apply plugin: 'java'
@@ -118,3 +119,21 @@ task deploy(type: Copy) {
118119
from jar
119120
into 'gocd/server/plugins/external'
120121
}
122+
123+
github {
124+
owner = System.getenv('GITHUB_USER') ?: 'bob'
125+
repo = 'docker-swarm-elastic-agents'
126+
token = System.getenv('GITHUB_TOKEN') ?: 'bad-token'
127+
tagName = project.ext.pluginVersion
128+
name = project.ext.pluginVersion
129+
targetCommitish = project.gitRevision
130+
body = """
131+
# Version ${project.ext.pluginVersion}
132+
133+
See release notes at https://github.com/${github.owner}/${github.repo}/blob/master/CHANGELOG.md#${github.tagName.replaceAll(/[^A-Za-z0-9]/, '')}
134+
""".stripIndent().trim()
135+
136+
assets = jar.outputs.files.files
137+
}
138+
139+
githubRelease.dependsOn assemble

0 commit comments

Comments
 (0)