Skip to content

Merge pull request #151 from RDFLib/jamie/next/types-updates #2

Merge pull request #151 from RDFLib/jamie/next/types-updates

Merge pull request #151 from RDFLib/jamie/next/types-updates #2

Workflow file for this run

name: Builds & pushes Storybook to AWS
on:
push:
branches:
- next
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
- name: Install and build prez-lib
working-directory: ./prez-lib
run: |
npm ci
CI=false npm run build
- name: Install and build Storybook
working-directory: ./prez-components
run: |
npm ci
CI=false npm run build-storybook
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-2
- name: Clear S3 bucket
run: aws s3 rm s3://${{ secrets.NEXT_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