File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 4848 with :
4949 name : ${{ steps.wasm_build.outputs.BUILD_TAG }}
5050 path : ${{ steps.wasm_build.outputs.BUILD_TAG }}
51-
52- - name : Install AWS cli
53- run : |
54- sudo apt update -y
55- sudo apt install awscli -y
56-
57- - name : Copy the wasm binary to aws s3.
58- run : |
59- export AWS_ACCESS_KEY_ID=${{ secrets.WEBAPP_STATIC_ACCESS_KEY }}
60- export AWS_SECRET_ACCESS_KEY=${{ secrets.WEBAPP_STATIC_SECRET_ACCESS_KEY }}
61- export AWS_DEFAULT_REGION=${{ secrets.WEBAPP_STATIC_REGION }}
62- gzip -9 ${{ steps.wasm_build.outputs.BUILD_TAG }} && mv ${{ steps.wasm_build.outputs.BUILD_TAG }}.gz ${{ steps.wasm_build.outputs.BUILD_TAG }}
63- aws s3 cp ${{ steps.wasm_build.outputs.BUILD_TAG }} s3://${{ secrets.WEBAPP_STATIC_BUCKET }}/wasm/${{ steps.wasm_build.outputs.BUILD_TAG }} --content-encoding gzip
64-
65- - name : Invalidate wasm binary
66- run : |
67- export AWS_ACCESS_KEY_ID=${{ secrets.WEBAPP_STATIC_ACCESS_KEY }}
68- export AWS_SECRET_ACCESS_KEY=${{ secrets.WEBAPP_STATIC_SECRET_ACCESS_KEY }}
69- export AWS_DEFAULT_REGION=${{ secrets.WEBAPP_STATIC_REGION }}
70- aws cloudfront create-invalidation --distribution-id ${{ secrets.WEBAPP_STATIC_DISTRIBUTION_ID }} --paths '/wasm/*'
51+
You can’t perform that action at this time.
0 commit comments