-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.sh
More file actions
executable file
·51 lines (42 loc) · 1.57 KB
/
setup_github.sh
File metadata and controls
executable file
·51 lines (42 loc) · 1.57 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
echo "🚀 Configurando repositório GitHub para ProcessarLoteNFe..."
# Verificar se gh está instalado
if ! command -v gh &> /dev/null; then
echo "❌ GitHub CLI não está instalado. Instalando..."
brew install gh
fi
# Verificar status de autenticação
echo "🔐 Verificando autenticação GitHub..."
if ! gh auth status &> /dev/null; then
echo "⚠️ Não autenticado. Por favor, autentique-se:"
echo " Execute: gh auth login"
echo " Siga as instruções na tela"
exit 1
fi
echo "✅ Autenticado no GitHub!"
# Criar repositório
echo "📦 Criando repositório ProcessarLoteNFe..."
gh repo create ProcessarLoteNFe \
--public \
--description "Processador Automático de XML de NF-e - Script PowerShell para extração e substituição de códigos de produto" \
--source=. \
--remote=origin \
--push
if [ $? -eq 0 ]; then
echo "✅ Repositório criado com sucesso!"
echo "🌐 URL: https://github.com/$(gh api user --jq .login)/ProcessarLoteNFe"
# Adicionar topics
echo "🏷️ Adicionando topics..."
gh repo edit --add-topic powershell,xml,nfe,automation,batch-processing,brazil,fiscal,invoice,script,xml-processing
# Criar release
echo "📋 Criando release v2.2.0..."
gh release create v2.2.0 \
--title "ProcessarLoteNFe v2.2.0" \
--notes-file CHANGELOG.md \
--latest
echo "🎉 Configuração completa!"
echo "📖 Acesse: https://github.com/$(gh api user --jq .login)/ProcessarLoteNFe"
else
echo "❌ Erro ao criar repositório"
exit 1
fi