diff options
author | Patric Stout <truebrain@openttd.org> | 2021-10-17 22:42:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 22:42:29 +0200 |
commit | 5bcdf16dc5539ebc2afd58fc2a348d39d13d53fb (patch) | |
tree | 7b387f4672fb842e2a33d7e2f7064a944e344a82 | |
parent | 01603d9e470ee329936862c0c4ad676843be23e7 (diff) | |
download | openttd-5bcdf16dc5539ebc2afd58fc2a348d39d13d53fb.tar.xz |
Fix 01603d9e: [Preview] publishing preview failed due to recent changes (#9621)
Since 01603d9e we run under root, not under github user. In result,
the location of "aws" binary changed.
-rw-r--r-- | .github/workflows/preview_build.yml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/.github/workflows/preview_build.yml b/.github/workflows/preview_build.yml index d539611b4..345a2152d 100644 --- a/.github/workflows/preview_build.yml +++ b/.github/workflows/preview_build.yml @@ -87,18 +87,15 @@ jobs: - name: Publish preview run: | - # setuptools is missing in this Docker image, which breaks installing - # awscli. So we need to do this in two steps to recover sanity. - pip3 install setuptools pip3 install awscli - ~/.local/bin/aws s3 cp --only-show-errors build/openttd.data s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ - ~/.local/bin/aws s3 cp --only-show-errors build/openttd.html s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ - ~/.local/bin/aws s3 cp --only-show-errors build/openttd.js s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ - ~/.local/bin/aws s3 cp --only-show-errors build/openttd.wasm s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ + aws s3 cp --only-show-errors build/openttd.data s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ + aws s3 cp --only-show-errors build/openttd.html s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ + aws s3 cp --only-show-errors build/openttd.js s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ + aws s3 cp --only-show-errors build/openttd.wasm s3://${{ secrets.PREVIEW_S3_BUCKET }}/${{ github.event.client_payload.folder }}/ # Invalidate the cache of the CloudFront distribution - ~/.local/bin/aws cloudfront create-invalidation --distribution-id ${{ secrets.PREVIEW_CF_DISTRIBUTION_ID }} --paths "/${{ github.event.client_payload.folder }}/*" + aws cloudfront create-invalidation --distribution-id ${{ secrets.PREVIEW_CF_DISTRIBUTION_ID }} --paths "/${{ github.event.client_payload.folder }}/*" env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |