Skip to content

Commit

Permalink
ci: storybook build host env NO-JIRA (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-potepa authored Sep 11, 2023
1 parent cbfb3f7 commit 0bc3618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
deploy:
name: Deploy Storybook to GitHub Pages
runs-on: ubuntu-latest
env:
STORYBOOK_HOST: ${{ vars.STORYBOOK_HOST }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .storybook/lightTheme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create } from '@storybook/theming/create';

const REPOSITORY_NAME = process?.env?.REPOSITORY_NAME;
const STORYBOOK_HOST = process?.env?.STORYBOOK_HOST;

export default create({
base: 'light',
Expand All @@ -12,7 +12,7 @@ export default create({

// Branding
brandTitle: 'Tetrisly - React Components',
brandImage: `${REPOSITORY_NAME ? '/' + REPOSITORY_NAME : ''}/logo.svg`,
brandImage: `${STORYBOOK_HOST ? '/' + STORYBOOK_HOST : ''}/logo.svg`,

// UI
appBg: '#ffffff',
Expand Down

0 comments on commit 0bc3618

Please sign in to comment.