From c6286c7c3ea224d232d14ec148e55f8c4f8551fd Mon Sep 17 00:00:00 2001 From: nyosic Date: Fri, 4 Apr 2025 12:32:00 +0000 Subject: [PATCH] Update .woodpecker/default.yml --- .woodpecker/default.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.woodpecker/default.yml b/.woodpecker/default.yml index f3b3ce9..d25400e 100644 --- a/.woodpecker/default.yml +++ b/.woodpecker/default.yml @@ -1,11 +1,19 @@ -steps: - - name: test - image: alpine +# .woodpecker.yml +pipeline: + build: + image: golang:1.18 commands: - - echo "Woodpecker is working!" - - uname -a + - echo "Building the project" + - go build -o build/my-app . -when: - event: - - push - - pull_request + release: + image: woodpeckerci/plugin-gitea-release + when: + event: + - tag + environment: + - GITEA_URL=https://git.xyro.win + - GITEA_TOKEN=${GITEA_TOKEN} # Make sure to set this in the Woodpecker secrets + - REPO_NAME=MarioDB + - TAG_NAME=${CI_COMMIT_REF} # Use the tag name + - ASSET_PATH=build/*