diff --git a/.github/workflows/build.sh b/.github/workflows/build.sh index 7f6b457..ec4111b 100755 --- a/.github/workflows/build.sh +++ b/.github/workflows/build.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ -f /etc/os-release ]; then . /etc/os-release OS=$NAME @@ -28,7 +30,7 @@ case $OS in setfacl -d --set u::rwx,g::rwx,o::- /home/build chown nobody . sudo -u nobody makepkg --log - + mkdir dist mv *.pkg.tar.zst dist @@ -45,4 +47,4 @@ case $OS in *) echo "Operating system is not recognized." ;; -esac \ No newline at end of file +esac diff --git a/.github/workflows/retrieve_version.sh b/.github/workflows/retrieve_version.sh index 9c9196d..c765f43 100644 --- a/.github/workflows/retrieve_version.sh +++ b/.github/workflows/retrieve_version.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # get version VERSION=$(jq -r '.version' version_info.json) release_name="Beta $VERSION" @@ -8,4 +10,4 @@ tag_name="v$VERSION" #write variables to github env echo "VERSION=$VERSION" >> $GITHUB_ENV echo "release_name=$release_name" >> $GITHUB_ENV -echo "tag_name=$tag_name" >> $GITHUB_ENV \ No newline at end of file +echo "tag_name=$tag_name" >> $GITHUB_ENV diff --git a/.github/workflows/update_packages.sh b/.github/workflows/update_packages.sh index 7c8b11c..fa5c6b6 100644 --- a/.github/workflows/update_packages.sh +++ b/.github/workflows/update_packages.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ -f /etc/os-release ]; then . /etc/os-release OS=$NAME @@ -20,4 +22,4 @@ case $OS in *) echo "Operating system is not recognized." ;; -esac \ No newline at end of file +esac