Hey folks been struggling with deploying storybook to a docs/lts directory on GitHub. At the moment I am able to build and deploy to my repos gh-pages but despite me setting a custom output directory it always pushes the storybook builds to the root of the gh-pages branch. No folder named docs/lts is ever created. If I run the following commands locally it creates the directory fine but does not when it runs in my GitHub workflows I have a yaml file that runs the following:
- name: Build Storybook
run: npm run build-storybook -- -o docs/lts
- name: Deploy storybook to GH Pages
run: npm run deploy-storybook -- -o docs/lts
env:
GH_TOKEN: ${{github.actor}}:${{secrets.GH_TOKEN}}
Build actions result appears to be taking the custom out put directory fine
Run npm run build-storybook -- -o docs/lts
> @somedude/[email protected] build-storybook
> storybook build -o docs/lts
storybook v8.2.3
Deploy actions result appears to be taking the custom out put directory fine
Run npm run deploy-storybook -- -o docs/lts
> @somedude/[email protected] deploy-storybook
> storybook-to-ghpages -o docs/lts
Pretty stumped and I have a feeling that its something small that I am overlooking or not doing correctly any assistance would be greatly appreciated.