From 610e6f635632a2ebaaa3fc4b0910b93c57994b01 Mon Sep 17 00:00:00 2001 From: ccubed Date: Sat, 30 Mar 2024 03:32:41 -0400 Subject: [PATCH] First Build --- .woodpecker.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 8a72877..435964f 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -15,19 +15,19 @@ steps: - java -jar muddle.jar - name: deploy-build - image: woodpeckerci/plugin-gitea-release + image: alpine when: - - event: push - - branch: main - settings: - base_url: https://git.vertinext.com - files: - - "build/lotj-ui.mpackage" - - "build/lotj-ui.xml" - api_key: + - evaluate: 'CI_PIPELINE_EVENT in ["push","tag"] && CI_COMMIT_TAG && not (CI_COMMIT_TAG == nil || CI_COMMIT_TAG == "")' + environment: + GITEATKN: from_secret: GITEA_TOKEN - target: main depends_on: build-release + commands: + - apk add wget + - wget -O teacli https://dl.gitea.com/tea/main/tea-main-linux-amd64 + - chmod +x teacli + - ./teacli login add --name=temp --url=https://git.vertinext.com/ --token=$GITEATKN + - ./teacli releases create --asset "build/lotj-ui.mpackage" --asset "build/lotj-ui.xml" --tag ${CI_COMMIT_TAG} - name: notify-on-branch-push image: alpine