28 lines
564 B
YAML
28 lines
564 B
YAML
|
when:
|
||
|
event: tag
|
||
|
branch: main
|
||
|
|
||
|
steps:
|
||
|
build:
|
||
|
image: golang:1.20-alpine
|
||
|
commands:
|
||
|
- apk update
|
||
|
- apk add --no-cache make alpine-sdk g++
|
||
|
- make build
|
||
|
- echo "$${CI_COMMIT_TAG}"
|
||
|
- make release
|
||
|
|
||
|
release:
|
||
|
image: woodpeckerci/plugin-gitea-release
|
||
|
settings:
|
||
|
base_url: https://git.iratusmachina.com
|
||
|
files:
|
||
|
- "artifacts/*.tar.gz"
|
||
|
file-exists: overwrite
|
||
|
api_key:
|
||
|
from_secret: gitea_release_token
|
||
|
draft: true
|
||
|
skip_verify: true
|
||
|
target: main
|
||
|
checksum: sha256
|