diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml new file mode 100644 index 0000000..49037f8 --- /dev/null +++ b/.github/workflows/storybook.yml @@ -0,0 +1,20 @@ +name: Storybook + +on: + push: + branches: + - main + pull_request: + +jobs: + storybook: + runs-on: ubuntu-latest + steps: + - uses: Taucher2003/GitLab-Pipeline-Action@1.1.0 + 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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..7d86885 --- /dev/null +++ b/.gitlab-ci.yml @@ -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