Skip to content

Commit 45e636c

Browse files
committed
even more magic
1 parent 1d97905 commit 45e636c

File tree

5 files changed

+24
-44
lines changed

5 files changed

+24
-44
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

build.gradle

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
plugins {
2+
id 'com.github.breadmoirai.github-release' version '2.4.1'
23
}
34

45
version = project.simpleclient_version
56
group = 'simpleclient'
67

7-
repositories {
8-
}
9-
10-
dependencies {
11-
}
12-
138
subprojects {
14-
}
15-
16-
allprojects {
179
version = rootProject.version
1810
group = rootProject.group
11+
}
12+
13+
githubRelease {
14+
token System.getenv('GITHUB_TOKEN') == null ? '' : System.getenv('GITHUB_TOKEN')
15+
owner 'SimpleClient'
16+
repo 'SimpleClient'
17+
tagName version
18+
targetCommitish 'main'
19+
releaseName version
20+
generateReleaseNotes false
21+
body file('changelog.md').text.replace('%version%', version)
22+
draft false
23+
prerelease version.startsWith('0') || version.endsWith('-snapshot') || version.endsWith('-alpha') || version.endsWith('-beta') || version.endsWith('-dev')
24+
releaseAssets file('build/libs').listFiles()
25+
allowUploadToExisting.set false
26+
overwrite true
27+
dryRun false
28+
apiEndpoint 'https://api.github.com'
29+
client
1930
}

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## SimpleClient %version%
2+
- Added Motionblur for 1.20

simpleclient-1.19.4/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ task copyJar(type: Copy) {
4545
if (!rootProject.file('build/libs').exists()) rootProject.file('build/libs').mkdirs()
4646
into rootProject.file('build/libs')
4747
}
48-
49-
remapJar.finalizedBy(copyJar)
48+
remapJar.finalizedBy copyJar

simpleclient-1.20/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ task copyJar(type: Copy) {
4545
if (!rootProject.file('build/libs').exists()) rootProject.file('build/libs').mkdirs()
4646
into rootProject.file('build/libs')
4747
}
48-
49-
remapJar.finalizedBy(copyJar)
48+
remapJar.finalizedBy copyJar

0 commit comments

Comments
 (0)