Skip to content

Commit

Permalink
tested locally fingers crossed
Browse files Browse the repository at this point in the history
  • Loading branch information
voynow committed Aug 13, 2024
1 parent dd132be commit e90ad7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#!/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 -r function.zip src
# 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 ..

0 comments on commit e90ad7f

Please sign in to comment.