Skip to content

Commit

Permalink
Add gh-pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HanjoHagemeierHCL committed Apr 19, 2024
1 parent 3649418 commit c9058d1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ======================================================================== #
# Copyright 2024 HCL America Inc. #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# ======================================================================== #
name: Publish to gh-pages
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Prepare 🔧
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build-storybook

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static # The folder the action should deploy.

0 comments on commit c9058d1

Please sign in to comment.