-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.17 KB
/
deploy-example-app-to-gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build and deploy example app and documentation on GitHub pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 18.6.0
- name: Prepare output folder
run: |
mkdir out
- name: Build table-engine
run: |
yarn install --frozen-lockfile
npm run build
- name: Build demo app
run: |
cd example
yarn install --frozen-lockfile
npm run build -- --base-href=https://bennyboer.github.io/table-engine/
cp -R ./dist/example/* ../out/
- name: Build documentation app
run: |
cd docs/app
yarn install --frozen-lockfile
npm run build -- --base-href=https://bennyboer.github.io/table-engine/docs/
mkdir ../../out/docs
cp -R ./dist/app/* ../../out/docs
- name: Deploy to GitHub pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: out
token: ${{ secrets.GITHUBPAGESDEPLOYTOKEN }}