Scripts/static/jfmod.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2022-11-03 14:57:54 +01:00
#include https://pages.frohnmeyer-wds.de/scripts/clone.yml
2022-10-28 16:03:23 +02:00
pipeline:
build_test:
image: gradle:latest
2022-10-28 16:03:23 +02:00
pull: true
commands:
2022-11-25 16:17:51 +01:00
- if [ $CI_PIPELINE_EVENT = tag ]; then
2022-11-25 15:17:02 +01:00
- gradle --build-cache deployRelease -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
- else
2022-11-01 17:48:29 +01:00
- gradle --build-cache deployDebug -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
2022-11-25 15:17:02 +01:00
- fi
2022-10-28 16:03:23 +02:00
- mkdir artifacts
- cp build/libs/* artifacts/
- cp build/devlibs/*-dev.jar artifacts/
2022-11-25 15:23:15 +01:00
- cd artifacts
2022-10-28 16:03:23 +02:00
- 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
2022-11-25 15:23:15 +01:00
- cd ..
2022-11-25 16:25:42 +01:00
secrets: [ maven_token, maven_name, modrinth_api_token, curseforge_api_token ]
2021-11-28 17:36:12 +01:00
artifacts:
2022-10-28 16:03:23 +02:00
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:
2022-11-25 15:17:02 +01:00
- branch: ${CI_REPO_DEFAULT_BRANCH}