diff --git a/Lanterna2.b4a b/Lanterna2.b4a index f1c8e5a..be945be 100644 --- a/Lanterna2.b4a +++ b/Lanterna2.b4a @@ -104,6 +104,10 @@ Version=12.8 '###################### PUSH TORTOISE GIT ######################################################### 'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=TortoiseGitProc&Args=/command:commit&Args=/path:"./../"&Args=/closeonend:2 '########################################################################################################### + + '###################### PUSH TORTOISE GIT TAG ######################################################### + 'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=./../push_with_tag.ps1 + '########################################################################################################### #End Region #Region Activity Attributes diff --git a/Lanterna2.b4a.meta b/Lanterna2.b4a.meta index 44f37f9..709664e 100644 --- a/Lanterna2.b4a.meta +++ b/Lanterna2.b4a.meta @@ -28,6 +28,6 @@ ModuleClosedNodes6=6 ModuleClosedNodes7= ModuleClosedNodes8= ModuleClosedNodes9= -NavigationStack=Principal,agregaFormaDePago,3521,0,Principal,cb_pago2_SelectedIndexChanged,3547,0,Principal,b_impAB_Click,2994,0,Diseñador Visual,mainpage.bal,-100,1,Diseñador Visual,principal.bal,-100,2,Principal,b_resumen_Click,4517,0,Main,b_cargaProductos_Click,244,0,Starter,Process_Globals,13,0,Starter,Service_Create,50,0,Main,i_conf_Click,213,0 +NavigationStack=Principal,agregaFormaDePago,3521,0,Principal,cb_pago2_SelectedIndexChanged,3547,0,Principal,b_impAB_Click,2994,0,Diseñador Visual,mainpage.bal,-100,1,Diseñador Visual,principal.bal,-100,2,Principal,b_resumen_Click,4517,0,Main,b_cargaProductos_Click,244,0,Starter,Process_Globals,13,0,Starter,Service_Create,50,0,Main,i_conf_Click,213,0,Main,Globals,33,0 SelectedBuild=0 VisibleModules=7,6,8,1 diff --git a/push_with_tag.ps1 b/push_with_tag.ps1 new file mode 100644 index 0000000..1a9215f --- /dev/null +++ b/push_with_tag.ps1 @@ -0,0 +1,8 @@ +# Paso 1: Hacer commit +TortoiseGitProc /command:commit /path:"./../" /closeonend:2 + +# Paso 2: Crear tag (solo si el commit fue exitoso) +if ($LASTEXITCODE -eq 0) { + $version = "v$(Get-Date -Format 'yy.MM.dd')" + TortoiseGitProc /command:tag /path:"./../" /tag:$version /message:"Auto-release $version" /push +} \ No newline at end of file