File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,18 @@ jobs:
6464 - name : " Install AWS CLI"
6565 if : github.event_name == 'push'
6666 run : |
67- if ! command -v aws &> /dev/null; then
67+ if ! command -v aws &> /dev/null && [ ! -x "$HOME/aws-cli/bin/aws" ] ; then
6868 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
6969 unzip -q awscliv2.zip
70- sudo ./aws/install
70+ ./aws/install -i "$HOME/aws-cli" -b "$HOME/bin"
7171 rm -rf awscliv2.zip aws
7272 fi
73+ export PATH="$HOME/bin:$PATH"
7374 aws --version
7475 - name : " Deploy to S3"
7576 if : github.event_name == 'push'
7677 run : |
78+ export PATH="$HOME/bin:$PATH"
7779 aws s3 sync --delete --acl=public-read docs/build s3://docs.sciml.ai --cache-control max-age=600
7880 env :
7981 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
You can’t perform that action at this time.
0 commit comments