We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1d7d0d + 02c533b commit 3c427a1Copy full SHA for 3c427a1
.dockerignore
@@ -54,4 +54,7 @@ docs/
54
55
# OS específicos
56
**/.DS_Store
57
-**/Thumbs.db
+**/Thumbs.db
58
+
59
+# Bash
60
+tag-release.sh
tag-release.sh
@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
3
+set -e
4
5
+if [[ ! -f "Directory.Build.props" ]]; then
6
+ echo "Erro: Directory.Build.props não encontrado"
7
+ exit 1
8
+fi
9
10
+VERSION=$(sed -n 's/.*<Version>\([^<]*\)<\/Version>.*/\1/p' Directory.Build.props)
11
12
+if [[ -z "$VERSION" ]]; then
13
+ echo "Erro: Versão não encontrada"
14
15
16
17
+TAG="v${VERSION}"
18
19
+echo "Tag: $TAG"
20
21
+git pull origin main
22
23
+git tag -a "$TAG" -m "Release version $VERSION"
24
25
+echo "Tag $TAG criada localmente"
0 commit comments