Skip to content

Commit 9a56120

Browse files
authored
Merge branch 'openscd:main' into main
2 parents a33c337 + 2273c2d commit 9a56120

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
release:
3+
types: [published] # This triggers when a new release is published
4+
5+
permissions:
6+
contents: write
7+
8+
name: attach-release-assets
9+
10+
jobs:
11+
attach-assets:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2.3.1
16+
- name: Use Node.js 18.x
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: "18.x"
20+
- name: Install and Build OpenSCD
21+
run: |
22+
npm i @nx/nx-linux-x64-gnu
23+
npm clean-install
24+
npm run-script build
25+
npm run-script doc
26+
- name: Copy Core Docs to OpenSCD
27+
run: cp -R packages/core/doc packages/distribution/build/core-doc
28+
29+
- name: Copy Plugin Docs to OpenSCD
30+
run: cp -R packages/plugins/doc packages/distribution/build/plugin-doc
31+
32+
- name: Compress files
33+
run: tar -czf open-scd.tar.gz -C packages/distribution/build
34+
35+
- name: Upload release files
36+
run: gh release upload ${{ steps.release.outputs.tag_name }} open-scd.tar.gz
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)