Skip to content

Commit 86e3dd5

Browse files
committed
keep dir structure in zip
1 parent 8abc931 commit 86e3dd5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy-to-lambda.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ jobs:
4141
zip_file=$(find "$dist_dir" -type f -name "*.zip" -print -quit)
4242
build_file=$(realpath "$zip_file")
4343
echo "Zip file found: $build_file"
44-
HATCH_SITE_PACKAGES_DIR=$(hatch env find)
45-
ls -lah $HATCH_SITE_PACKAGES_DIR/../..
44+
HATCH_SITE_PACKAGES_DIR=$(hatch env find default)
45+
parentdir="$(dirname "$HATCH_SITE_PACKAGES_DIR")"
46+
parentdir="$(dirname "$parentdir")"
47+
ls -lah $parentdir
4648
cd $HATCH_SITE_PACKAGES_DIR/lib/python3.12/site-packages
4749
zip -r $build_file *
4850
shell: bash

0 commit comments

Comments
 (0)