3939 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4040 with :
4141 fetch-depth : 0
42-
42+ - name : Install AWS CLI
43+ run : |
44+ sudo apt-get install unzip curl -y
45+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
46+ unzip awscliv2.zip
47+ sudo ./aws/install --update
48+ aws --version
4349 - name : Setup Node.js
4450 uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
4551 with :
@@ -62,16 +68,15 @@ jobs:
6268
6369 - name : Build Make
6470 run : make build
65-
66- - name : deploy to S3 Bucket
67- if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release'
68- run : |
69- aws s3 sync ${{ env.OUT_DIR }} s3://${{ env.S3_BUCKET }} --acl private --cache-control 'private, max-age:3600' --delete
70- aws s3 cp ${{ env.OUT_DIR }} s3://${{ env.S3_BUCKET }} --recursive --exclude '*' --include '*.html' --acl private --cache-control 'no-cache, no-store'
71-
71+
7272 - name : Deploy to ephemerals - Branch SC
7373 if : startsWith(github.ref, 'refs/heads/sc-')
7474 run : |
7575 aws s3 sync build/staging s3://ephemeral-environments/${{ env.APP }}${{ env.BRANCH_NAME }} --acl public-read --cache-control "private, max-age:3600" --delete
7676 aws s3 cp build/staging s3://ephemeral-environments/${{ env.APP }}/${{ env.BRANCH_NAME }} --recursive --exclude '*' --include '*.html' --acl public-read --cache-control 'no-cache, no-store'
7777
78+ - name : Deploy to S3 Bucket
79+ if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release'
80+ run : |
81+ aws s3 sync ${{ env.OUT_DIR }} s3://${{ env.S3_BUCKET }} --acl private --cache-control 'private, max-age:3600' --delete
82+ aws s3 cp ${{ env.OUT_DIR }} s3://${{ env.S3_BUCKET }} --recursive --exclude '*' --include '*.html' --acl private --cache-control 'no-cache, no-store'
0 commit comments