Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit fe25f53

Browse files
committed
Added workflow for tagged releases
1 parent a135308 commit fe25f53

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/tagged_release.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create tagged release
2+
on:
3+
push:
4+
tags:
5+
- v*.*.*
6+
7+
jobs:
8+
prebuild-node:
9+
strategy:
10+
matrix:
11+
os: [ ubuntu-latest, windows-latest, macos-latest ]
12+
node: [ 10, 12, 14]
13+
task: [ prebuild ]
14+
runtime: [ node ]
15+
runs-on: ${{matrix.os}}
16+
steps:
17+
- name: Set up Git repository
18+
uses: actions/checkout@v2
19+
- name: Set up node
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{matrix.node}}
23+
- name: Install
24+
run: npm install --unsafe-perm
25+
- name: Publish prebuild
26+
run: npm run prebuild -- -t ${{matrix.node}} -r ${{matrix.runtime}} --include-regex "\.(node|a|so|dylib|lib|dll).*$" -u ${{ secrets.GITHUB_TOKEN }}
27+
28+
prebuild-electron:
29+
strategy:
30+
matrix:
31+
os: [ ubuntu-latest, windows-latest, macos-latest ]
32+
node: [ 14]
33+
task: [ prebuild ]
34+
runtime: [ electron ]
35+
target: [ 8.0.0 , 9.0.0 , 10.0.0 , 11.0.0 , 12.0.0 ]
36+
runs-on: ${{matrix.os}}
37+
steps:
38+
- name: Set up Git repository
39+
uses: actions/checkout@v2
40+
- name: Set up node
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: ${{matrix.node}}
44+
- name: Install
45+
run: npm install --unsafe-perm
46+
- name: Publish prebuild
47+
run: npm run prebuild -- -t ${{matrix.target} -r ${{matrix.runtime}} --include-regex "\.(node|a|so|dylib|lib|dll).*$" -u ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)