Skip to content

Instantly share code, notes, and snippets.

@Deborah-Digges
Created October 30, 2020 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deborah-Digges/342c40700fdbcac30629c93093cd1838 to your computer and use it in GitHub Desktop.
Save Deborah-Digges/342c40700fdbcac30629c93093cd1838 to your computer and use it in GitHub Desktop.
name: Deploy to GitHub Pages
on:
push:
branches:
master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Deploy storybook to Github Pages
run: npm install --save-dev @storybook/storybook-deployer && npx storybook-to-ghpages --branch=$BRANCH --ci
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment