Skip to content

Merge pull request #328 from wwnorton/NDS-428 #182

Merge pull request #328 from wwnorton/NDS-428

Merge pull request #328 from wwnorton/NDS-428 #182

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
env:
NODE_VERSION: 18
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- name: Install πŸ“¦
run: npm ci
- name: Build Sassdoc πŸ’„
run: npm run build:sassdoc
- name: Build Storybook πŸ“š
run: npm run build:stories
- name: Build docs πŸ“„
run: npm run build:docs
env:
BASE_URL: /design-system/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: public
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy πŸš€
id: deployment
uses: actions/deploy-pages@v2