mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-26 09:58:38 +01:00
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:
parent
e17d34d7c6
commit
90f0bfb70d
1 changed files with 6 additions and 1 deletions
7
.github/workflows/conty-autorelease.yml
vendored
7
.github/workflows/conty-autorelease.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue