n8n/packages/design-system/.github/workflows/deploy.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2021-08-09 02:29:11 -07:00
name: Deploy Docs
on:
push:
branches:
2021-08-09 03:22:21 -07:00
- main
2021-08-09 02:29:11 -07:00
jobs:
build:
runs-on: ubuntu-latest
env:
2021-08-09 03:42:22 -07:00
NODE_OPTIONS: '--max_old_space_size=4096'
2021-08-09 02:29:11 -07:00
steps:
- uses: actions/checkout@v2
- name: Build and deploy
uses: actions/setup-node@v1
with:
node-version: 14.x
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: build
run: |
npm install
npm run build:storybook
cd storybook-static
- name: commit
run: |
cd storybook-static
git init
git config --local user.email "github-actions@users.noreply.github.com"
git config --local user.name "github-actions"
git add -A
git commit -m "Deploy" -a
- name: push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
2021-08-09 03:42:22 -07:00
directory: 'storybook-static'