From d80a67b3d7f30130aeee322c32d42ca67c32b80c Mon Sep 17 00:00:00 2001 From: Lawson Lewis <151585421+lalewis1@users.noreply.github.com> Date: Fri, 12 Apr 2024 12:02:10 +1000 Subject: [PATCH 1/2] Update push_to_next.yaml update workflow to push to widget branch specific s3 buckets --- .github/workflows/push_to_next.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push_to_next.yaml b/.github/workflows/push_to_next.yaml index 0abe3ca..d093d84 100644 --- a/.github/workflows/push_to_next.yaml +++ b/.github/workflows/push_to_next.yaml @@ -29,7 +29,7 @@ jobs: - name: Build prez-ui working-directory: ./prez-ui env: - NUXT_PUBLIC_API_URL: ${{ secrets.NEXT_API_URL }} + NUXT_PUBLIC_API_URL: ${{ secrets.NEXT_WIDGETS_API_URL }} run: CI=false pnpm generate - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v2 @@ -38,12 +38,12 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ap-southeast-2 - name: Clear Storybook S3 bucket - run: aws s3 rm s3://${{ secrets.NEXT_STORYBOOK_S3_BUCKET_NAME }} --recursive + run: aws s3 rm s3://${{ secrets.NEXT_WIDGETS_STORYBOOK_S3_BUCKET_NAME }} --recursive - name: Upload Storybook to S3 working-directory: ./prez-components - run: aws s3 cp storybook-static/ s3://${{ secrets.NEXT_STORYBOOK_S3_BUCKET_NAME }} --recursive + run: aws s3 cp storybook-static/ s3://${{ secrets.NEXT_WIDGETS_STORYBOOK_S3_BUCKET_NAME }} --recursive - name: Clear Prez UI S3 bucket - run: aws s3 rm s3://${{ secrets.NEXT_PREZUI_S3_BUCKET_NAME }} --recursive + run: aws s3 rm s3://${{ secrets.NEXT_WIDGETS_PREZUI_S3_BUCKET_NAME }} --recursive - name: Upload Prez UI to S3 working-directory: ./prez-ui - run: aws s3 cp dist/ s3://${{ secrets.NEXT_PREZUI_S3_BUCKET_NAME }} --recursive + run: aws s3 cp dist/ s3://${{ secrets.NEXT_WIDGETS_PREZUI_S3_BUCKET_NAME }} --recursive From af725e2639f006448a2442a31fd1553b58e2b599 Mon Sep 17 00:00:00 2001 From: Lawson Lewis <151585421+lalewis1@users.noreply.github.com> Date: Fri, 12 Apr 2024 12:04:21 +1000 Subject: [PATCH 2/2] Update push_to_next.yaml update trigger --- .github/workflows/push_to_next.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_to_next.yaml b/.github/workflows/push_to_next.yaml index d093d84..6bf1831 100644 --- a/.github/workflows/push_to_next.yaml +++ b/.github/workflows/push_to_next.yaml @@ -3,7 +3,7 @@ name: Build & push Storybook & Prez UI demo site to AWS on: push: branches: - - next + - hjohns/next/widgets workflow_dispatch: jobs: