push-package-action icon indicating copy to clipboard operation
push-package-action copied to clipboard

Pushing packages > 2GB will fail

Open benPearce1 opened this issue 1 year ago • 0 comments

Due to a limitation in NodeJS, pushing a package file over 2GB in size will result in the following error:

Error: Error: RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2202366406) is greater than 2 GiB

Workaround:

Add a step to your action to install the Octopus CLI

- name: Install Octopus CLI
   uses: OctopusDeploy/[email protected]

Then use the cli to push the package

- name: push package
   env:
     OCTOPUS_URL: ${{ secrets.OCTOPUS_URL }}
     OCTOPUS_API_KEY: ${{ secrets.OCTOPUS_API_KEY }}
   run: octopus package upload --space Default --package package.1.0.0.zip --no-prompt

benPearce1 avatar Jan 19 '24 06:01 benPearce1