BreakMe/.woodpecker.yml

32 lines
1.1 KiB
YAML
Raw Normal View History

2022-12-02 18:59:18 +01:00
#include https://pages.frohnmeyer-wds.de/scripts/clone.yml
2023-12-07 21:16:27 +01:00
steps:
2022-12-02 18:59:18 +01:00
build_test:
2024-04-25 22:21:50 +02:00
image: gradle:latest
2022-12-02 18:59:18 +01:00
pull: true
commands:
- mkdir artifacts
- if [ $CI_PIPELINE_EVENT = tag ]; then
2022-12-03 16:30:16 +01:00
- gradle --build-cache moveArtifacts curseforge -Pflavour=curseforge -Prelease
- gradle --build-cache moveArtifacts publish modrinth modrinthSyncBody -Prelease -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
2022-12-02 18:59:18 +01:00
- else
2022-12-03 16:30:16 +01:00
- gradle --build-cache moveArtifacts -Pflavour=curseforge
- gradle --build-cache moveArtifacts deployDebug -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
2022-12-02 18:59:18 +01:00
- fi
secrets: [ maven_token, maven_name, modrinth_api_token, curseforge_api_token ]
artifacts:
image: woodpeckerci/plugin-s3
2023-12-07 21:16:27 +01:00
pull: true
2022-12-02 18:59:18 +01: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:19:36 +01:00
source: build/artifacts/**/*
strip_prefix: build/
2022-12-02 18:59:18 +01:00
target: /${CI_REPO}
when:
- branch: ${CI_REPO_DEFAULT_BRANCH}