Skip to content

Feat: Added XML Package for OpenSCD (#1536) #404

Feat: Added XML Package for OpenSCD (#1536)

Feat: Added XML Package for OpenSCD (#1536) #404

name: Build and Deploy
on:
push:
branches:
- main
paths:
- "packages/openscd/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: "18.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/[email protected]
with:
branch: master
folder: packages/distribution/build
repository-name: openscd/openscd.github.io
ssh-key: ${{ secrets.DEPLOY_KEY }}