Skip to content

Cleanup binding actions code #473

Cleanup binding actions code

Cleanup binding actions code #473

Workflow file for this run

name: Website
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Test Build
run: |
yarn install --frozen-lockfile;
cd website;
yarn install --frozen-lockfile;
yarn build;
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
set -e;
git config --global user.email "[email protected]";
git config --global user.name "Iddan Aaronsohn";
yarn install --frozen-lockfile;
yarn build-storybook;
mkdir -p website/static/storybook;
cp -r storybook-static/* website/static/storybook;
cd website;
yarn install --frozen-lockfile;
yarn deploy;