Replace manual file moving by moveArtifacts
This commit is contained in:
parent
3c44dc563f
commit
19c7da20e5
|
@ -6,19 +6,10 @@ pipeline:
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- if [ $CI_PIPELINE_EVENT = tag ]; then
|
- 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
|
- 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
|
- 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 ]
|
secrets: [ maven_token, maven_name, modrinth_api_token, curseforge_api_token ]
|
||||||
artifacts:
|
artifacts:
|
||||||
image: woodpeckerci/plugin-s3
|
image: woodpeckerci/plugin-s3
|
||||||
|
@ -30,7 +21,7 @@ pipeline:
|
||||||
access_key: pages
|
access_key: pages
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: pages_secret
|
from_secret: pages_secret
|
||||||
source: artifacts/**/*
|
source: build/artifacts/**/*
|
||||||
target: /${CI_REPO}
|
target: /${CI_REPO}
|
||||||
when:
|
when:
|
||||||
- branch: ${CI_REPO_DEFAULT_BRANCH}
|
- branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
Loading…
Reference in New Issue