Skip to content

new footer design (#1017) #3

new footer design (#1017)

new footer design (#1017) #3

name: Deploy Storybook to GitHub Pages
on:
push:
branches:
- main # Or your default branch name
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read .nvmrc
id: nvm
run: echo "NVMRC=$(cat '.nvmrc')" >> $GITHUB_OUTPUT
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Build Storybook
run: npm run ui:build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ui/storybook-static
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4