Skip to content

Commit 703dc7a

Browse files
aromalanilapollonian
authored andcommitted
Added action to build demo
The demo site is build and published in Github pages.
1 parent 19f8de9 commit 703dc7a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/github-page.yml

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

0 commit comments

Comments
 (0)