-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lib): setup cd to deploy storybook to gh-pages
- Loading branch information
1 parent
24fca48
commit 4776adc
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |