Skip to content

Commit

Permalink
chore: add docs deployment to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis authored Apr 26, 2020
1 parent f1a5a6e commit 84dfec4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is a basic workflow to help you get started with Actions
name: Deploy Docs

on:
push:
branches: [ master ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Setup Node.js environment
uses: actions/setup-node@v1.4.2
with:
node-version: 12.x

- name: Install and Build
run: |
yarn install
yarn build:storybook
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: .out # The folder the action should deploy.
TARGET_FOLDER: master

0 comments on commit 84dfec4

Please sign in to comment.