-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.22 KB
/
build-storybook.yaml
File metadata and controls
39 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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}}"