From a425bcb3b82174974bab2df11fec2dc1a5a06901 Mon Sep 17 00:00:00 2001 From: Gard Rimestad Date: Mon, 14 Nov 2022 11:01:07 +0100 Subject: [PATCH] feat: upload main branch builds to cdn (#2415) This enables us to run tip of main builds of enterprise pointing to the newest frontend builds. --- .github/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8188e97495..da5274a7ee 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -44,6 +44,14 @@ jobs: CI: true TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres + - uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.AWS_DEFAULT_REGION }} + - name: Publish static assets to S3 + run: | + aws s3 cp frontend/build s3://getunleash-static/unleash/main/$(git rev-parse HEAD) --recursive trigger-ci-build: runs-on: ubuntu-latest