Skip to content

Commit 60ab6e9

Browse files
authored
Add live demo (#39)
1 parent 7583091 commit 60ab6e9

File tree

13 files changed

+1566
-3
lines changed

13 files changed

+1566
-3
lines changed

.github/workflows/demo.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2
12+
with:
13+
persist-credentials: false
14+
- run: cd demo && npm install
15+
- run: cd demo && npm run build
16+
- name: Deploy 🚀
17+
uses: JamesIves/github-pages-deploy-action@3.6.1
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
BRANCH: gh-pages
21+
FOLDER: demo
22+
CLEAN: true

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
Version:
10-
description: "Version, anything accepted by `npm version XXX`"
10+
description: 'Version accepted by `npm version *`'
1111
required: true
1212

1313
jobs:
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818
with:
19-
fetch-depth: 20
19+
fetch-depth: 20
2020
- run: npm install
2121
- uses: fregante/setup-git-token@v1
2222
with:

demo/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/node_modules/
2+
/public/build/
3+
4+
.DS_Store

0 commit comments

Comments
 (0)