37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
#include https://pages.frohnmeyer-wds.de/scripts/clone.yml
|
|
|
|
pipeline:
|
|
build_test:
|
|
image: gradle:latest
|
|
pull: true
|
|
commands:
|
|
- if [ $CI_PIPELINE_EVENT = tag ]; then
|
|
- gradle --build-cache deployRelease -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
|
|
- else
|
|
- gradle --build-cache deployDebug -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
|
|
settings:
|
|
bucket: pages
|
|
region: nebula
|
|
path_style: true
|
|
endpoint: https://s3.frohnmeyer-wds.de
|
|
access_key: pages
|
|
secret_key:
|
|
from_secret: pages_secret
|
|
source: artifacts/**/*
|
|
target: /${CI_REPO}
|
|
when:
|
|
- branch: ${CI_REPO_DEFAULT_BRANCH}
|