Skip to content

Commit

Permalink
chore: upload storybook-static to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Apr 3, 2024
1 parent cb02ebb commit d08ff78
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:

build-storybook:
runs-on: ubuntu-latest
environment: CI

strategy:
matrix:
Expand All @@ -45,9 +46,14 @@ jobs:
cache: "npm"
- run: npm ci
- run: npm run build-storybook
- name: Save storybook static
uses: actions/upload-artifact@v4
- name: Upload storybook static
uses: jakejarvis/[email protected]
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 }}
AWS_S3_ENDPOINT: s3.yandexcloud.net
SOURCE_DIR: 'storybook-static'
DEST_DIR: '/storybook-static/${{ github.ref_name }}-${{ github.run_number }}-${{ github.run_attempt }}/'

0 comments on commit d08ff78

Please sign in to comment.