Skip to content

Commit 4bc153a

Browse files
authored
Merge pull request #677 from IETS3/bugfix/repair_artifact_publish
Repair github publication step
2 parents b21ab2f + d522821 commit 4bc153a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

build.gradle

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717
plugins {
1818
id 'base'
1919
id 'maven-publish'
20-
id 'co.riiid.gradle' version '0.4.2'
20+
id "com.github.breadmoirai.github-release" version "2.4.1"
2121
}
2222

2323
ext.dependencyRepositories = [
@@ -382,21 +382,18 @@ Includes dependencies:
382382
${depsList}
383383
"""
384384

385-
github {
385+
githubRelease {
386386
owner = 'IETS3'
387387
repo = 'iets3.opensource'
388388
token = rootProject.findProperty('github.token') ?: 'empty'
389389
tagName = 'nightly-' + version
390390
targetCommitish = GitBasedVersioning.getGitCommitHash()
391-
name = 'Nighly Build ' + version
391+
body = releaseNotes
392392
prerelease = true
393-
assets = packageDistroWithDependencies.outputs.files.collect {it.path}
394-
}
395-
githubRelease.doFirst {
396-
// do late body init to avoid executing listMergedPRs during config phase
397-
github {
398-
body = releaseNotes
399-
}
393+
releaseAssets = packageDistroWithDependencies.outputs.files.collect {it.path}
394+
dryRun = false
400395
}
401396

402-
githubRelease.dependsOn packageDistroWithDependencies
397+
tasks.named('githubRelease').configure {
398+
dependsOn packageDistroWithDependencies
399+
}

0 commit comments

Comments
 (0)