From 9f704fd63e4a7edc4f2a85a6b695966415fc0baf Mon Sep 17 00:00:00 2001 From: Josh Haile <35245966+voxparcxls@users.noreply.github.com> Date: Wed, 15 May 2024 18:24:21 -0700 Subject: [PATCH] Use -j to remove top-level directory in zip artifact (#25) --- .github/workflows/cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd-pipeline.yml b/.github/workflows/cicd-pipeline.yml index 75c1146..be6b71c 100644 --- a/.github/workflows/cicd-pipeline.yml +++ b/.github/workflows/cicd-pipeline.yml @@ -184,7 +184,7 @@ jobs: mkdir -p build/${{ steps.poetry-build.outputs.tf_module_artifact_name }} cp terraform/* build/${{ steps.poetry-build.outputs.tf_module_artifact_name }}/ cd build - zip ${{ steps.poetry-build.outputs.tf_module_artifact_name }}.zip ${{ steps.poetry-build.outputs.tf_module_artifact_name }}/* -r + zip ${{ steps.poetry-build.outputs.tf_module_artifact_name }}.zip ${{ steps.poetry-build.outputs.tf_module_artifact_name }}/* -r -j - uses: actions/upload-artifact@v4 with: name: ${{ steps.poetry-build.outputs.tf_module_artifact_name }}