2024-03-30 02:03:15 -04:00
|
|
|
steps:
|
|
|
|
- name: build-release
|
|
|
|
image: alpine
|
|
|
|
secrets: [GITEA_TOKEN]
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
- branch: main
|
|
|
|
commands:
|
|
|
|
- apk add openjdk21
|
|
|
|
- apk add wget
|
|
|
|
- apk add tar
|
|
|
|
- wget -O teacli https://dl.gitea.com/tea/main/tea-main-linux-amd64
|
|
|
|
- chmod +x teacli
|
|
|
|
- wget https://github.com/demonnic/muddler/releases/download/0.13/muddle-shadow-0.13.tar
|
|
|
|
- tar -xvf muddle-shadow-0.13.tar
|
|
|
|
- mv muddle-shadow-0.13/lib/muddle-0.13-all.jar muddle.jar
|
2024-03-30 02:22:03 -04:00
|
|
|
- java -jar muddle.jar
|
2024-03-30 02:03:15 -04:00
|
|
|
|
|
|
|
- name: deploy-build
|
|
|
|
image: woodpeckerci/plugin-gitea-release
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
- branch: main
|
|
|
|
settings:
|
|
|
|
base_url: https://git.vertinext.com
|
|
|
|
files:
|
|
|
|
- "build/lotj-ui.mpackage"
|
|
|
|
- "build/lotj-ui.xml"
|
|
|
|
api_key:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
target: main
|
|
|
|
depends_on: build-release
|
|
|
|
|
|
|
|
- name: notify-on-branch-push
|
|
|
|
image: alpine
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
- status: [success, failure]
|
2024-03-30 02:22:03 -04:00
|
|
|
depends_on: build-release
|
2024-03-30 02:03:15 -04:00
|
|
|
secrets: [GITEA_TOKEN]
|
|
|
|
commands:
|
|
|
|
- apk add curl
|
2024-03-30 02:25:19 -04:00
|
|
|
- curl "https://git.vertinext.com/message?token=$${GITEA_TOKEN}" -F "title=${CI} - ${CI_REPO_NAME}" -F "message=${CI_BUILD_EVENT} has status ${CI_BUILD_STATUS}" -F "priority=0"
|