Skip to content

Commit

Permalink
fix(macos_m1): Added PATH setting to run aws commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-kocka committed Oct 30, 2023
1 parent f174764 commit 5fd58f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-wheels-macos-M1-self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
echo "Adding Homebrew to PATH"
export PATH="/opt/homebrew/bin:$PATH"
echo "Current PATH: $PATH"
echo "Updating Homebrew and installing dependencies"
brew update
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
Expand Down Expand Up @@ -148,6 +148,9 @@ jobs:
PREFIX: 'pypi'
shell: bash
run: |
# AWS is not in PATH and has to be added, for new version maybe we should use GH action
# for example https://github.com/jakejarvis/s3-sync-action
export PATH=$PATH:/opt/homebrew/bin/
chmod +x Upload-Wheels.sh
./Upload-Wheels.sh $AWS_BUCKET
pip3 install boto3
Expand All @@ -158,4 +161,8 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CACHE_INVALIDATION }} --paths "/pypi/*"
run: |
# AWS is not in PATH and has to be added, for new version maybe we should use GH action
# for example https://github.com/jakejarvis/s3-sync-action
export PATH=$PATH:/opt/homebrew/bin/
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CACHE_INVALIDATION }} --paths "/pypi/*"

0 comments on commit 5fd58f6

Please sign in to comment.