chore: create oscd-layout addon (#1510) #396
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[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 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/[email protected] | |
with: | |
branch: master | |
folder: packages/open-scd/build | |
repository-name: openscd/openscd.github.io | |
ssh-key: ${{ secrets.DEPLOY_KEY }} |