Skip to content

Commit

Permalink
神金1
Browse files Browse the repository at this point in the history
  • Loading branch information
EarzuChan committed Aug 15, 2024
1 parent 9ecc0a7 commit 9ecac73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ task uploadReleaseAssets {
doLast {
def artifactsDir = file('temp/artifacts').absolutePath
def version = project.version.toString()

if (ghToken == null || postUrl == null) {
throw new IllegalStateException("GH_TOKEN or POST_URL is not set.")
}

def postUrlFormatted = postUrl.replaceAll("\\{.*\\}", "")

println "Post url: ${postUrlFormatted}"
Expand Down

0 comments on commit 9ecac73

Please sign in to comment.