This commit is contained in:
spiritlhl 2024-05-01 09:39:29 +00:00
parent 0af3ace4ab
commit 1a272b02b1
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ jobs:
for file in ./bin/*; do
echo "Uploading $file to release..."
curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/zip" \
-H "Content-Type: application/octet-stream" \
--data-binary @"$file" \
"https://uploads.github.com/repos/oneclickvirt/backtrace/releases/$release_id/assets?name=$(basename "$file")"
rm -rf $file

View File

@ -6,5 +6,6 @@ if [ "$arch" = "x86_64" ]; then
else
wget -q -O backtrace https://github.com/oneclickvirt/backtrace/releases/output/backtrace-linux-arm64
fi
chmod 777 backtrace
mv backtrace /usr/bin/
backtrace