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/*