feat(ci): first attempt for automated releases

This commit is contained in:
Simon Cornet 2025-04-03 11:09:09 +02:00
commit edd4999b73
4 changed files with 67 additions and 2 deletions

View file

@ -29,3 +29,16 @@ build:
name: "${CI_PROJECT_NAME}"
paths:
- "gogitlabber"
release:
stage: "release"
needs:
- "build"
image:
name: "goreleaser/goreleaser:v2.8.2"
entrypoint: [""]
rules:
- if: "$CI_COMMIT_TAG"
script:
- export GITLAB_TOKEN="$GORELEASER_GITLAB_TOKEN"
- "goreleaser release --rm-dist --changelog=changelog.md"