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