Skip to content

chore: update theme tokens #41

chore: update theme tokens

chore: update theme tokens #41

Workflow file for this run

name: Publish Storybook
on:
push:
branches:
- master
workflow_dispatch:
jobs:
storybook:
name: Storybook
runs-on: ubuntu-latest
env:
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Build
run: |
npm run build-storybook -- -o storybook-static/storybook
- name: Auth to Google Cloud
id: auth
if: ${{ always() && env.GOOGLE_SERVICE_ACCOUNT != 0 }}
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GOOGLE_SERVICE_ACCOUNT }}"
- name: "Set up Cloud SDK"
if: env.GOOGLE_SERVICE_ACCOUNT != 0
uses: "google-github-actions/setup-gcloud@v2"
- name: Publish storybook to Google Cloud
run: |
gsutil -m rsync -d -r storybook-static/storybook gs://internal-kestra-host/${{ format('{0}/{1}', github.repository, github.ref_name) }}
- name: Create commit comment
uses: peter-evans/commit-comment@v3
with:
body: |
Storybook published on
https://internal.dev.kestra.io/ui-libs/${{ github.ref_name }}/storybook
reactions: 'hooray'