Initial commit
This commit is contained in:
commit
7b53e80217
81 changed files with 39132 additions and 0 deletions
44
.github/workflows/deploy-demo.yml
vendored
Normal file
44
.github/workflows/deploy-demo.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: Deploy Demo to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js 🔧
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies 📦
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Build project 🏗️
|
||||
run: |
|
||||
npm run build
|
||||
npm run build:browser
|
||||
|
||||
- name: Prepare deployment 📦
|
||||
run: |
|
||||
mkdir -p deploy
|
||||
mkdir -p deploy/demo
|
||||
cp index.html deploy/
|
||||
cp demo/index.html deploy/demo/
|
||||
cp -r dist deploy/
|
||||
cp brainy.png deploy/
|
||||
|
||||
- name: Deploy to GitHub Pages 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
folder: deploy
|
||||
branch: gh-pages
|
||||
Loading…
Add table
Add a link
Reference in a new issue