2023-03-17 13:51:54 +00:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: gradle:jdk17
|
|
|
|
commands:
|
|
|
|
- chmod +x gradlew
|
|
|
|
- ./gradlew assemble --stacktrace
|
2023-03-17 13:54:21 +00:00
|
|
|
when:
|
|
|
|
event: push
|
2023-03-17 13:51:54 +00:00
|
|
|
|
|
|
|
gitea_release:
|
|
|
|
image: bash
|
|
|
|
secrets:
|
|
|
|
- api_key
|
|
|
|
commands:
|
|
|
|
- export PRERELEASE=true
|
2023-04-25 17:49:51 +00:00
|
|
|
- cd scripts
|
2023-03-17 13:51:54 +00:00
|
|
|
- chmod +x git_release.py
|
|
|
|
- pip install giteapy
|
2023-04-25 17:49:51 +00:00
|
|
|
- python git_release.py --token "$API_KEY" --message "${CI_COMMIT_MESSAGE}" --prerelease $PRERELEASE --tag "${CI_COMMIT_TAG}"
|
2023-03-17 13:51:54 +00:00
|
|
|
when:
|
2023-06-20 10:43:29 +00:00
|
|
|
event: tag
|