Skip to content

Merge pull request #9 from zazuko/update-20240312 #13

Merge pull request #9 from zazuko/update-20240312

Merge pull request #9 from zazuko/update-20240312 #13

Workflow file for this run

name: Build and deploy the app on GitHub Pages
on:
push:
branches:
- main
jobs:
github-pages:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build the app
run: npm run build
- name: Configure CNAME
run: echo ld-widget.zazuko.com > dist/ld-widget/CNAME
- name: Configure 404 page
run: cp dist/ld-widget/index.html dist/ld-widget/404.html
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/ld-widget