Skip to content

Commit

Permalink
feat(lib): setup cd to deploy storybook to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkrai03 committed Jan 19, 2024
1 parent 24fca48 commit 4776adc
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Aonic UI CD

# Controls when the action will run.
on:
# Triggers the workflow on push event for the main branch
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "deploy"
deploy:
name: Deploy
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repo 🛎️
uses: actions/checkout@v3

- name: Setup Node.js 18.x ⚙️
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies 🥁
run: yarn

- name: Lint ✅
run: yarn lint

- name: Test 🧪
run: yarn test

- name: Build Library 🏗
run: yarn build

- name: Deploy Storybook 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/storybook-static # The folder the action should deploy.

0 comments on commit 4776adc

Please sign in to comment.