Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pniedzwiedzinski committed Feb 22, 2020
1 parent 85f6065 commit fb280ef
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Storybook

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build-storybook

- name: Install SSH Client
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
SSH: true
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: storybook-static # The folder the action should deploy.
12 changes: 0 additions & 12 deletions src/hooks/useCounter.spec.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/hooks/useCounter.tsx

This file was deleted.

0 comments on commit fb280ef

Please sign in to comment.