CI: split files into chunks of 2GBs which is the maximum limit for release files

This commit is contained in:
kekrby 2022-08-28 17:14:37 +03:00
parent 3dbdcb90fa
commit bf21f20d9e

View file

@ -14,11 +14,11 @@ jobs:
run: |
for iso in $(nix flake show --json | nix run nixpkgs#jq -- -r keys[]); do
nix build .#$iso
cp result/iso/*.iso $iso.iso
split -d result/iso/*.iso -b 2G $iso.iso-part-
rm result
done
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.')
with:
files: "*.iso"
files: "*.iso-part-*"