BreakMe/.woodpecker.yml
JFronny de00f51b06
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
fix: build in gradle:latest
2024-04-25 22:21:50 +02:00

32 lines
1.1 KiB
YAML

#include https://pages.frohnmeyer-wds.de/scripts/clone.yml
steps:
build_test:
image: gradle:latest
pull: true
commands:
- mkdir artifacts
- if [ $CI_PIPELINE_EVENT = tag ]; then
- gradle --build-cache moveArtifacts curseforge -Pflavour=curseforge -Prelease
- gradle --build-cache moveArtifacts publish modrinth modrinthSyncBody -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
- else
- gradle --build-cache moveArtifacts -Pflavour=curseforge
- gradle --build-cache moveArtifacts deployDebug -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
- fi
secrets: [ maven_token, maven_name, modrinth_api_token, curseforge_api_token ]
artifacts:
image: woodpeckerci/plugin-s3
pull: true
settings:
bucket: pages
region: nebula
path_style: true
endpoint: https://s3.frohnmeyer-wds.de
access_key: pages
secret_key:
from_secret: pages_secret
source: build/artifacts/**/*
strip_prefix: build/
target: /${CI_REPO}
when:
- branch: ${CI_REPO_DEFAULT_BRANCH}