We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d9b321 commit fc24857Copy full SHA for fc24857
1 file changed
.github/workflows/deploy-to-lambda.yml
@@ -37,10 +37,13 @@ jobs:
37
- name: Build zip
38
run: |
39
hatch build -t zipped-directory
40
+ dist_dir="dist/"
41
+ zip_file=$(find "$dist_dir" -type f -name "*.zip" -print -quit)
42
+ build_file=$(realpath "$zip_file")
43
+ echo "Zip file found: $build_file"
44
HATCH_SITE_PACKAGES_DIR=$(hatch env find)/lib/python3.12/site-packages
- pattern="dist/*.zip"
- dist_files=( $pattern )
- zip -r ${files[0]} $HATCH_SITE_PACKAGES_DIR
45
+ cd $HATCH_SITE_PACKAGES_DIR
46
+ zip -r $build_file *
47
shell: bash
48
49
- name: Publish to Github
0 commit comments