diff --git a/push-nix-cache/action.yaml b/push-nix-cache/action.yaml index bd9edac..bc79e91 100644 --- a/push-nix-cache/action.yaml +++ b/push-nix-cache/action.yaml @@ -26,7 +26,8 @@ runs: run: | echo "${NIX_SIGNING_KEY}" > /tmp/nix-key nix store sign -k /tmp/nix-key --recursive "${{ inputs.store-path }}" - nix copy \ - --to "s3://${{ inputs.s3-bucket }}?endpoint=${{ inputs.s3-endpoint }}" \ - "${{ inputs.store-path }}" rm /tmp/nix-key + nix copy --to "file:///tmp/nix-cache" "${{ inputs.store-path }}" + aws s3 sync /tmp/nix-cache \ + "s3://${{ inputs.s3-bucket }}" \ + --endpoint-url "${{ inputs.s3-endpoint }}"