🐛 fix(ci): corrigir pipeline release para tags v*

- Filtro de ref corrigido: [0-9]* → v* para bater em tags "v0.3.0"
- awk agora strip o prefixo 'v' de DRONE_TAG antes de buscar no CHANGELOG
- Adiciona entrada 0.3.0 no CHANGELOG.md
This commit is contained in:
Cinco Euzebio 2026-03-01 00:01:29 -03:00
parent 4dcac9a6aa
commit 3c78a5afe3
2 changed files with 14 additions and 3 deletions

View File

@ -53,7 +53,7 @@ trigger:
event:
- tag
ref:
- refs/tags/[0-9]*
- refs/tags/v*
steps:
- name: build-x86_64
@ -76,8 +76,9 @@ steps:
commands:
- apk add --no-cache curl jq
- |
# Extract changelog entry for this tag (content between this and previous ## heading)
BODY=$(awk "/^## \[${DRONE_TAG}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md)
# Extract changelog entry for this tag (strip leading 'v' to match CHANGELOG format)
TAG="${DRONE_TAG#v}"
BODY=$(awk "/^## \[${TAG}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md)
RELEASE_ID=$(curl -fsSL -X POST \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \

View File

@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.3.0] - 2026-03-01
### Added
- Verificação de dependências (`fzf` e `tmux`) ao iniciar, antes de qualquer operação
- Detecção automática do gerenciador de pacotes da distro (apt, pacman, dnf, yum, zypper, emerge, xbps, apk)
- Oferta interativa de instalação caso as ferramentas estejam ausentes
- Módulo `deps` com trait `BinaryChecker` injetável para testes unitários sem tocar no sistema real
- Testes de integração em `tests/deps.rs` (11 testes com `SystemBinaryChecker` real)
- Suite de testes em container Docker Ubuntu 24.04 (`tests/docker/`) com 15 cenários simulando novo usuário
## [0.2.4] - 2026-03-01
### Fixed