Skip to content

build: Generate distribution files for the React wizard stepper library. #2

build: Generate distribution files for the React wizard stepper library.

build: Generate distribution files for the React wizard stepper library. #2

Workflow file for this run

name: Deploy Demo
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build Library
run: npm run build
- name: Install Demo Dependencies
run: |
cd examples/demo
npm ci
- name: Build Demo
run: |
cd examples/demo
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: examples/demo/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4