Skip to content

add wildcard exclude #29

add wildcard exclude

add wildcard exclude #29

name: "deploy storybook"
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: "deploy-storybook"
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/cache@v3
name: pnpm cache
with:
path: ${{ env.PNPM_HOME }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/.npmrc') }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm install --frozen-lockfile
- run: pnpm build:storybook
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: "us-east-1"
- name: Deploy to AWS
run: pnpm cdk deploy StacklineTakehomeStorybook --require-approval=never
env:
CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT }}
CDK_DEFAULT_REGION: "us-east-1"