Skip to content

Commit e0bb413

Browse files
authored
feat: add GitHub Pages deployment with cyberpunk theme (#790)
- Add gh-pages workflow that deploys examples on tag push - Create cyberpunk CSS theme matching react-resizable/react-grid-layout - Update example page with header links to companion libraries - Add build-example script to prepare bundle for gh-pages - Update example.js to use themed classes and remove duplicate header - Reformat README for improved readability with props table
1 parent 679e269 commit e0bb413

File tree

7 files changed

+507
-356
lines changed

7 files changed

+507
-356
lines changed

.github/workflows/gh-pages.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Deploy to GitHub Pages
2+
permissions:
3+
contents: write
4+
on:
5+
push:
6+
tags:
7+
- "*"
8+
workflow_dispatch:
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout 🛎️
14+
uses: actions/checkout@v4
15+
16+
- name: Install and Build
17+
run: |
18+
yarn
19+
yarn build
20+
yarn build-example
21+
22+
- name: Deploy 🚀
23+
uses: JamesIves/github-pages-deploy-action@v4
24+
with:
25+
branch: gh-pages # The branch the action should deploy to.
26+
folder: example # The folder the action should deploy.
27+
target-folder: example # The destination. Shouldn't touch other folders.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
*.iml
33
node_modules/
44
build/
5+
example/build/
6+
coverage/

0 commit comments

Comments
 (0)