Skip to content

πŸ”§ Update CODEOWNERS (#1214) #89

πŸ”§ Update CODEOWNERS (#1214)

πŸ”§ Update CODEOWNERS (#1214) #89

name: Storybook deployment
on:
# This allows us to manually trigger the deployment through GitHub
workflow_dispatch:
push:
branches:
- master
concurrency:
group: storybook_deployment
cancel-in-progress: true
env:
S3_BUCKET: homeday-blocks-production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/[email protected]
- name: Set node version πŸ—
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies ⬇️
run: npm ci
- name: Lint πŸ“
run: npm run lint:ci
- name: Unit test πŸ§ͺ
run: npm run test:unit:ci
- name: Build Storybook πŸ“¦
run: npm run build:storybook
- name: Configure AWS Credentials πŸ”§
uses: aws-actions/[email protected]
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_SB }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SB }}
aws-region: eu-central-1
- name: Deploy assets πŸ“„
run: aws s3 cp storybook-static/ s3://${{ env.S3_BUCKET }} --recursive --exclude "*.html"
- name: Deploy index πŸ“„
run: aws s3 cp storybook-static/ s3://${{ env.S3_BUCKET }} --recursive --exclude "*" --include "*.html"