Skip to content

Commit

Permalink
Create storybook pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Nov 21, 2023
1 parent 458d4e0 commit 9be85b1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Storybook

on:
push:
branches:
- main
pull_request:

jobs:
storybook:
runs-on: ubuntu-latest
steps:
- uses: Taucher2003/[email protected]
name: Run pipeline
with:
GL_SERVER_URL: https://gitlab.com
GL_PROJECT_ID: '52344025'
GL_RUNNER_TOKEN: ${{ secrets.GL_RUNNER_TOKEN }}
GL_API_TOKEN: ${{ secrets.GL_API_TOKEN }}
SHOW_JOB_LOGS: all
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
storybook:build:
image: node:20.9.0
stage: build
script:
- npm ci
- npm run storybook:build
- echo "Storybook available at https://code0-tech.gitlab.io/-/base-ui/-/jobs/$CI_JOB_ID/artifacts/storybook-static/index.html"
environment:
name: storybook/$CI_COMMIT_REF_SLUG
url: https://code0-tech.gitlab.io/-/base-ui/-/jobs/$CI_JOB_ID/artifacts/storybook-static/index.html
auto_stop_in: 7 days
artifacts:
paths:
- storybook-static
expire_in: 7 days

0 comments on commit 9be85b1

Please sign in to comment.