Skip to content

Commit

Permalink
I've found the flaw in my design, testing again
Browse files Browse the repository at this point in the history
  • Loading branch information
voynow committed Aug 13, 2024
1 parent e90ad7f commit 732808c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
#!/bin/bash

# Clean up any previous builds
rm -rf package
rm -f function.zip

# Export dependencies and install them into the package directory
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --target ./package -r requirements.txt

# Navigate to the package directory and zip its contents
cd package || exit
zip -r ../function.zip .
cd ..

# Zip the contents of the src directory directly into the function.zip
cd src || exit
zip -r ../function.zip . # Note the dot here to include the contents, not the directory itself
cd ..
zip -r function.zip src

0 comments on commit 732808c

Please sign in to comment.