From 4c7a08f8d9716b31002a64ec6c0e08281c674d4e Mon Sep 17 00:00:00 2001 From: Alex Rennie-Lis Date: Tue, 16 Jun 2026 23:30:01 +0100 Subject: [PATCH] Updated build script --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1e5e534..882d190 100644 --- a/build.sh +++ b/build.sh @@ -14,4 +14,10 @@ cp -r DEBIAN ${name}_${version}_all/; cp -r etc ${name}_${version}_all/; cp -r usr ${name}_${version}_all/; -dpkg-deb --build --root-owner-group ${name}_${version}_all \ No newline at end of file +dpkg-deb --build --root-owner-group ${name}_${version}_all + +if [ $? -eq 0 ]; then + curl -X POST "https://git.unblue.uk/api/v1/repos/Unblue/${name}/releases/v${version}/assets" \ + -H "Authorization: token ${GIT_TOKEN}" \ + -H "Content-Type: multipart/form-data" \ + -F "attachment=@${name}_${version}_all.deb" \ No newline at end of file