-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 1.06 KB
/
release.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
name: Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i
- run: npm run build
- run: zip -r cq-dashboard.zip dashboard package.json LICENSE
- uses: svenstaro/upload-release-action@v2
with:
file: cq-dashboard.zip
overwrite: true
- uses: actions/checkout@v3
with:
repository: nodecg/nodecg
path: nodecg
ref: v1.9.0
- run: curl https://nodejs.org/dist/latest-v18.x/win-x64/node.exe --output nodecg/node.exe
- run: echo "node.exe index.js" > nodecg/run.bat
- run: mkdir nodecg/bundles/cq-dashboard
- run: cp -r dashboard package.json LICENSE nodecg/bundles/cq-dashboard
- run: npm i --production
working-directory: ./nodecg
- run: zip -r cq-nodecg.zip nodecg/
- uses: svenstaro/upload-release-action@v2
with:
file: cq-nodecg.zip
overwrite: true