push-package-action
push-package-action copied to clipboard
Pushing packages > 2GB will fail
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