Skip to content

Commit 7d9b321

Browse files
committed
there's a hatch for that
1 parent d68bdb9 commit 7d9b321

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ jobs:
3636

3737
- name: Build zip
3838
run: |
39-
hatch build
40-
hatch shell
41-
HATCH_SITE_PACKAGES_DIR=$(echo $(python -c 'import site; print(site.getsitepackages()[0])'))
39+
hatch build -t zipped-directory
40+
HATCH_SITE_PACKAGES_DIR=$(hatch env find)/lib/python3.12/site-packages
4241
pattern="dist/*.zip"
4342
dist_files=( $pattern )
4443
zip -r ${files[0]} $HATCH_SITE_PACKAGES_DIR

0 commit comments

Comments
 (0)