From 19c7da20e57f3a9eda89f068bc842d8d5fd4edec Mon Sep 17 00:00:00 2001 From: JFronny Date: Sat, 3 Dec 2022 16:10:25 +0100 Subject: [PATCH] Replace manual file moving by moveArtifacts --- static/jfmod.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/static/jfmod.yml b/static/jfmod.yml index ea327be..187cbee 100644 --- a/static/jfmod.yml +++ b/static/jfmod.yml @@ -6,19 +6,10 @@ pipeline: pull: true commands: - if [ $CI_PIPELINE_EVENT = tag ]; then - - gradle --build-cache deployRelease -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts" + - gradle --build-cache deployRelease moveArtifacts -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts" - else - - gradle --build-cache deployDebug -Pmaven="https://maven.frohnmeyer-wds.de/artifacts" + - gradle --build-cache deployDebug moveArtifacts -Pmaven="https://maven.frohnmeyer-wds.de/artifacts" - fi - - mkdir artifacts - - cp build/libs/* artifacts/ - - cp build/devlibs/*-dev.jar artifacts/ - - cd artifacts - - rm -f *-maven.jar *-sources.jar *-testmod.jar *-config-inject.jar - - mv *-dev.jar dev.zip - - mv *.jar latest.jar - - mv dev.zip latest-dev.jar - - cd .. secrets: [ maven_token, maven_name, modrinth_api_token, curseforge_api_token ] artifacts: image: woodpeckerci/plugin-s3 @@ -30,7 +21,7 @@ pipeline: access_key: pages secret_key: from_secret: pages_secret - source: artifacts/**/* + source: build/artifacts/**/* target: /${CI_REPO} when: - branch: ${CI_REPO_DEFAULT_BRANCH}