2022-11-03 14:57:54 +01:00
|
|
|
#include https://pages.frohnmeyer-wds.de/scripts/clone.yml
|
|
|
|
|
2023-12-07 19:06:56 +01:00
|
|
|
steps:
|
2022-10-28 16:03:23 +02:00
|
|
|
build_test:
|
2022-12-03 15:07:28 +01:00
|
|
|
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-12-03 16:10:25 +01:00
|
|
|
- gradle --build-cache deployRelease moveArtifacts -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
|
2022-11-25 15:17:02 +01:00
|
|
|
- else
|
2022-12-03 16:10:25 +01:00
|
|
|
- gradle --build-cache deployDebug moveArtifacts -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
|
2022-11-25 15:17:02 +01:00
|
|
|
- fi
|
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
|
2023-12-07 19:06:56 +01:00
|
|
|
pull: true
|
2022-10-28 16:03:23 +02:00
|
|
|
settings:
|
|
|
|
bucket: pages
|
|
|
|
region: nebula
|
|
|
|
path_style: true
|
|
|
|
endpoint: https://s3.frohnmeyer-wds.de
|
|
|
|
access_key: pages
|
|
|
|
secret_key:
|
|
|
|
from_secret: pages_secret
|
2022-12-03 16:10:25 +01:00
|
|
|
source: build/artifacts/**/*
|
2022-12-03 16:15:35 +01:00
|
|
|
strip_prefix: build/
|
2022-10-28 16:03:23 +02:00
|
|
|
target: /${CI_REPO}
|
2024-07-18 12:23:18 +02:00
|
|
|
overwrite: true
|
2022-10-28 16:03:23 +02:00
|
|
|
when:
|
2022-11-25 15:17:02 +01:00
|
|
|
- branch: ${CI_REPO_DEFAULT_BRANCH}
|