Skip to content

Commit 3c88b48

Browse files
Merge pull request #327 from ChrisRackauckas-Claude/fix-aws-cli-install
Install AWS CLI to user-local path instead of using sudo
2 parents d67a5e2 + 6d9d08e commit 3c88b48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/Documentation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)