From a46e6406b64d36a1205981c67a34c8713c3ba961 Mon Sep 17 00:00:00 2001 From: "petrak@" Date: Mon, 24 Apr 2023 11:19:51 -0500 Subject: [PATCH] ok now it should work --- Jenkinsfile | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 83f193d9..5acae759 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,8 @@ pipeline { } environment { discordWebhook = credentials('discordWebhook') + CURSEFORGE_TOKEN = credentials('curseforgeApiKey') + MODRINTH_TOKEN = credentials('modrinthApiKey') } stages { stage('Clean') { @@ -23,13 +25,24 @@ pipeline { } } stage('Publish') { - when { anyOf { - branch 'main' - branch '1.18' - } } - steps { - echo 'Deploying to Maven' - sh './gradlew publish sendWebhook' + when { + anyOf { + branch 'main' + } + } + stages { + stage('Deploy Previews') { + steps { + echo 'Deploying previews to various places' + sh './gradlew publish publishToDiscord' + } + } + stage('Deploy releases') { + steps { + echo 'Maybe deploy releases' + sh './gradlew publishCurseforge publishModrinth' + } + } } } }