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.
This commit is contained in:
Kron4ek 2023-07-28 13:36:18 +05:00 committed by GitHub
parent e17d34d7c6
commit 90f0bfb70d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,11 @@ jobs:
sed -i 's/sed/#sed/g' create-arch-bootstrap.sh sed -i 's/sed/#sed/g' create-arch-bootstrap.sh
sudo ./create-arch-bootstrap.sh && ./create-conty.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 - uses: dev-drprasad/delete-tag-and-release@v1.0
with: with:
tag_name: continuous tag_name: continuous
@ -29,7 +34,7 @@ jobs:
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
files: conty.sh files: ./conty.sh*
prerelease: true prerelease: true
draft: false draft: false
tag_name: continuous tag_name: continuous