Files
components/.github/workflows/storybook-deploy.yml
T
Stephan e2f03b7c89 Fix bugs
Add actor to the GH token and set source branch to main
2022-10-04 09:25:55 +02:00

26 lines
625 B
YAML

name: Deploy Storybook to GH pages
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm i
- name: Install deploy-storybook
run: npm i -g @storybook/storybook-deployer
- name: Build and deploy
run: npx -p @storybook/storybook-deployer storybook-to-ghpages -- --ci --branch=gh-pages --source-branch=main
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}