Artifacts mentioned in secondary-artifacts section not getting uploaded to s3 bucket
In the CodeBuild "Artifacts" configuration, there is an "Add Artifact" button.

You need to click that and reference your secondary artifact to get it to upload to S3 as well.