2024-04-06 19:33:56 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
branch: main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
image: golang:1.20-alpine
|
|
|
|
commands:
|
|
|
|
- apk update
|
2024-04-07 08:32:16 +00:00
|
|
|
- apk add --no-cache make alpine-sdk g++ bash
|
2024-04-06 19:33:56 +00:00
|
|
|
- make build
|
|
|
|
- echo "$${CI_COMMIT_TAG}"
|
|
|
|
- make release
|
|
|
|
|
2024-04-07 08:32:16 +00:00
|
|
|
generate-changelog:
|
|
|
|
image: python:3.11-alpine
|
|
|
|
commands:
|
|
|
|
- apk update
|
|
|
|
- apk add --no-cache make alpine-sdk g++ bash
|
|
|
|
- make changelog-draft
|
|
|
|
|
2024-04-06 19:33:56 +00:00
|
|
|
release:
|
|
|
|
image: woodpeckerci/plugin-gitea-release
|
2024-04-07 08:32:16 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
2024-04-06 19:33:56 +00:00
|
|
|
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
|
2024-04-07 08:32:16 +00:00
|
|
|
note: "./draft_notes.md"
|