8383 echo "::endgroup::"
8484 done
8585 echo "exists=true" >> $GITHUB_OUTPUT
86+
87+ dir=_base
88+ cd $dir
89+ touch _config.txt
90+ zip -r -9 ../_output/Help-.zip .
91+ cd ..
92+
8693 echo "Bundling finished."
8794
8895 - name : Create tag
@@ -100,23 +107,29 @@ jobs:
100107
101108 TAG="$VERSION"
102109
103- echo "::group::Old release delete"
104- RELEASE_ID=$(curl -s -H "Authorization: token $TOKEN" \
105- https://api.github.com/repos/$REPO/releases/tags/$TAG | jq -r .id)
106-
107- if [ "$RELEASE_ID" != "null" ]; then
108- echo "Deleting release ID $RELEASE_ID"
109- curl -s -X DELETE -H "Authorization: token $TOKEN" \
110- https://api.github.com/repos/$REPO/releases/$RELEASE_ID
111- fi
112- echo "::endgroup::"
113-
114- echo "::group::Old tag delete"
115- if git ls-remote --tags origin | grep -q "$TAG"; then
116- git tag -d "$TAG" || true
117- git push origin ":refs/tags/$TAG" || true
118- fi
119- echo "::endgroup::"
110+ #echo "::group::Old release delete"
111+ #RELEASE_ID=$(curl -s -H "Authorization: token $TOKEN" \
112+ # https://api.github.com/repos/$REPO/releases/tags/$TAG)
113+ #MESSAGE=$(echo "$RELEASE_ID" | jq -r '.message // empty')
114+ #if [ "$MESSAGE" = "Not Found" ]; then
115+ # echo "Release with tag $TAG not found"
116+ #else
117+ # RELEASE_ID =$(echo "RELEASE_ID" | jq -r '.id // empty')
118+ #
119+ # if [ "$RELEASE_ID" != "null" ]; then
120+ # echo "Deleting release ID $RELEASE_ID"
121+ # curl -s -X DELETE -H "Authorization: token $TOKEN" \
122+ # https://api.github.com/repos/$REPO/releases/$RELEASE_ID
123+ # fi
124+ #fi
125+ #echo "::endgroup::"
126+ #
127+ #echo "::group::Old tag delete"
128+ #if git ls-remote --tags origin | grep -q "$TAG"; then
129+ # git tag -d "$TAG" || true
130+ # git push origin ":refs/tags/$TAG" || true
131+ #fi
132+ #echo "::endgroup::"
120133
121134 echo "::group::New tag created"
122135 echo "tag=$TAG" >> $GITHUB_OUTPUT
0 commit comments