From 5734dc3cca71fba6a128a20121d238faaeabd88e Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sat, 10 Sep 2022 03:23:59 -0400 Subject: [PATCH] Invalidate after upload This might be contributing to the checksum issues with verify-relocatable. --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f5df8e5..ca32061d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,15 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + #FIXME incredibly inefficient - have upload.ts tell us what to invalidate + - uses: chetan/invalidate-cloudfront-action@v2 + env: + DISTRIBUTION: ${{ secrets.AWS_CF_DISTRIBUTION_ID }} + PATHS: "/*" + AWS_REGION: "us-east-1" + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + - name: upload artifacts uses: actions/upload-artifact@v3 with: @@ -180,12 +189,3 @@ jobs: SLACK_MESSAGE: build job for ${{ inputs.projects }} ${{ needs.build.result == 'success' && 'succeeded' || 'failed' }} #FIXME SO UGLY: if one of the matrix fails, it cancels the others and returns `cancelled` SLACK_COLOR: ${{ needs.build.result == 'cancelled' && 'failed' || needs.build.result }} - - #FIXME incredibly inefficient - - uses: chetan/invalidate-cloudfront-action@v2 - env: - DISTRIBUTION: ${{ secrets.AWS_CF_DISTRIBUTION_ID }} - PATHS: "/*" - AWS_REGION: "us-east-1" - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}