Skip to content

Commit 91bdeb0

Browse files
committed
test
1 parent 05389ea commit 91bdeb0

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

scripts/remote_handler.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,19 @@ list_non_upload_debs() {
3838
}
3939

4040
upload_debs() {
41-
list_non_upload_debs
41+
# list_non_upload_debs
42+
non_uploaded_list=$(mktemp /tmp/non_upl.XXXXXXXXX)
43+
4244
pushd $DEB_DIR
43-
for deb in *.deb;do
45+
for deb in *.deb; do
4446
modified_name="$(echo "$deb" | sed 's/[^\a-zA-Z0-9._+-]/./g')"
4547
mv -n $deb $modified_name
48+
echo "$modified_name" >> $non_uploaded_list
4649
done
4750
for deb_name in $(cat $non_uploaded_list); do
48-
if ! gh release upload -R github.com/$owner/$repo $tag $deb_name;then
51+
local package_name_tag=$(echo $deb_name | cut -d '_' -f 1)
52+
gh release create -R github.com/$owner/$repo $package_name_tag -n "$package_name_tag"
53+
if ! gh release upload -R github.com/$owner/$repo $package_name_tag $deb_name --clobber; then
4954
echo "$deb_name issues while uploading"
5055
fi
5156
done
@@ -75,7 +80,7 @@ remove_archive_from_temp_gh() {
7580
# However repository consistency checker will catch any unsuccesful checks.
7681
cd $BASE_DIR
7782
for temp in ./*.tar;do
78-
if gh release delete-asset -R github.com/$owner/tur $tag "$(basename $temp)" -y;then
83+
if gh release delete-asset -R github.com/$owner/tur 0.1 "$(basename $temp)" -y;then
7984

8085
echo "$temp removed!!"
8186
else

0 commit comments

Comments
 (0)