forked from openscd/open-scd
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.21 KB
/
build-and-deploy.yml
File metadata and controls
45 lines (39 loc) · 1.21 KB
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
42
43
44
45
name: Build and Deploy
on:
workflow_dispatch:
# push:
# branches:
# - main
# paths:
# - "packages/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
submodules: "true"
- name: Use Node.js 20.x
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f #v6.3.0
with:
node-version: "20.x"
- name: Install and Build OpenSCD
run: |
npm i @nx/nx-linux-x64-gnu
npm clean-install
npm run-script build
npm run-script doc
- name: Copy Core Docs to OpenSCD
run: |
cp -R packages/core/doc packages/distribution/build/core-doc
- name: Copy Plugin Docs to OpenSCD
run: |
cp -R packages/plugins/doc packages/distribution/build/plugin-doc
- name: Deploy
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f #v4.8.0
with:
branch: master
folder: packages/distribution/build
repository-name: com-pas/openscd.github.io
ssh-key: ${{ secrets.DEPLOY_KEY }}