forked from openscd/open-scd
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1006 Bytes
/
build-and-deploy.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
on:
push:
branches:
- main
paths:
- "packages/open-scd/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Install and Build OpenSCD
run: |
npm clean-install
npm run-script build
npm run-script doc
- name: Copy Core Docs to OpenSCD
run: |
cp -R packages/core/doc packages/open-scd/build/core-doc
- name: Copy Plugin Docs to OpenSCD
run: |
cp -R packages/plugins/doc packages/open-scd/build/plugin-doc
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: master
folder: packages/open-scd/build
repository-name: juancho0202/juancho0202.github.io
ssh-key: ${{ secrets.DEPLOY_KEY }}