Skip to content

Storybook

Storybook #195

name: Storybook
on:
workflow_dispatch:
inputs:
kuberta_system:
jobs:
build:
name: Build Storybook
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: docker://quay.csssr.cloud/csssr/kuberta-init-workflow:v1
- name: Download CSSSR actions
uses: actions/checkout@v4
with:
repository: CSSSR/actions
ssh-key: ${{ secrets.DOWNLOAD_ACTIONS_SSH_KEY }}
path: actions
- name: Import secrets
id: secrets
uses: ./actions/get-aws-s3-upload-creds/v1beta1
with:
VAULT_JWT_KEY: ${{secrets.VAULT_JWT_KEY}}
- name: Build and push storybook
uses: ./actions/build-and-deploy-static-site/v1beta1
with:
project-id: core-design-storybook
install: cd packages/core-design && yarn install --freeze-lockfile --no-interactive
build: cd packages/core-design && yarn run build-storybook -o static
files: ./packages/core-design/static
node-version: "12.x"
auth: "aws:${{steps.secrets.outputs.AWS_ACCESS_KEY_ID}}:${{steps.secrets.outputs.AWS_SECRET_ACCESS_KEY}}:${{steps.secrets.outputs.AWS_SESSION_TOKEN}}"