π§ Update CODEOWNERS (#1214) #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |