From 8525ffa253811af541f8c920338e69a61eb53c9e Mon Sep 17 00:00:00 2001 From: shadowusr Date: Thu, 4 Apr 2024 00:03:08 +0300 Subject: [PATCH] chore: upload storybook-static to S3 --- .github/workflows/checks.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 15ce61f..4535d57 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -30,6 +30,7 @@ jobs: build-storybook: runs-on: ubuntu-latest + environment: CI strategy: matrix: @@ -45,9 +46,13 @@ jobs: cache: "npm" - run: npm ci - run: npm run build-storybook - - name: Save storybook static + - name: Upload storybook static uses: actions/upload-artifact@v4 with: - name: storybook static - path: | - storybook-static + args: --acl public-read --follow-symlinks + env: + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + SOURCE_DIR: 'storybook-static' + DEST_DIR: '/storybook-static/${{ github.ref_name }}-${{ github.run_number }}-${{ github.run_attempt }}/'