From 90f0bfb70dd70ab8464d7c43330e292ad4953fb7 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Fri, 28 Jul 2023 13:36:18 +0500 Subject: [PATCH] Split Conty in the autorelease workflow if necessary Since it's not allowed to upload assets larger than 2 GB, let's split them into multiple pieces. --- .github/workflows/conty-autorelease.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conty-autorelease.yml b/.github/workflows/conty-autorelease.yml index 44dab0e..30a213f 100644 --- a/.github/workflows/conty-autorelease.yml +++ b/.github/workflows/conty-autorelease.yml @@ -16,6 +16,11 @@ jobs: sed -i 's/sed/#sed/g' create-arch-bootstrap.sh sudo ./create-arch-bootstrap.sh && ./create-conty.sh + if [ "$(stat -c%s conty.sh)" -gt 2097152000 ]; then + split -b 2097152000 --numeric-suffixes=1 conty.sh conty.sh_part + rm conty.sh + fi + - uses: dev-drprasad/delete-tag-and-release@v1.0 with: tag_name: continuous @@ -29,7 +34,7 @@ jobs: - uses: softprops/action-gh-release@v1 with: - files: conty.sh + files: ./conty.sh* prerelease: true draft: false tag_name: continuous