-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·34 lines (25 loc) · 814 Bytes
/
Copy pathrelease.sh
File metadata and controls
executable file
·34 lines (25 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Script para fazer bump de patch e criar release automaticamente
set -e
echo "🚀 Iniciando processo de release..."
# Bump patch version
echo "📦 Fazendo bump de patch version..."
uv version --bump patch
# Pegar a nova versão
VERSION=$(uv version --short)
echo "✅ Nova versão: $VERSION"
# Adicionar arquivos
echo "📝 Adicionando arquivos ao git..."
git add pyproject.toml uv.lock
# Commit
echo "💾 Criando commit..."
git commit -m "chore: bump version to $VERSION"
# Criar tag
echo "🏷️ Criando tag v$VERSION..."
git tag -a "v$VERSION" -m "Release v$VERSION"
# Push
echo "🌐 Enviando para o GitHub..."
git push origin main --tags
echo ""
echo "✨ Release v$VERSION criada com sucesso!"
echo "🔗 Acompanhe o build em: https://github.com/felipeadeildo/pytally-sdk/actions"