Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

feature: Github Action for CI and Deploy to GH Pages on push to master #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci_and_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI and Deploy to GH-Pages

on:
push:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build-storybook
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@master
env:
EMAIL: ${{ secrets.email }}
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BUILD_DIR: storybook-static