Skip to content

Commit 2eee719

Browse files
authored
Update lambda.yml
1 parent 1e1cf9b commit 2eee719

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/lambda.yml

+18
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,24 @@ jobs:
4343
#project_name: ${{ secrets.AWS_PROJECT }}
4444
#s3_bucket: ${{ secrets.AWS_BUCKET }}
4545

46+
# Runs a set of commands using the runners shell; THIS DOESN'T WORK
47+
- name: Run a multi-line script
48+
run: |
49+
#install PIP
50+
python -m pip install --upgrade pip
51+
#install all dependencies as defined by requirements.txt in the current directory
52+
pip3 install -r requirements.txt -t .
53+
#for installing invidividual modules
54+
#pip3 install Flask -t .
55+
#zip files into current directory
56+
zip -r invalidate-cloudFront-cache.zip .
57+
58+
#for installing chrome
59+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
60+
sudo dpkg -i google-chrome-stable_current_amd64.deb
61+
62+
#ensuring current working directory is accessible by the function--this might not be doing anything
63+
export PATH=$PATH:$(pwd)
4664
4765
#Deploy lambda_function.py to AWS
4866
- name: AWS Lambda Deploy

0 commit comments

Comments
 (0)