-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 884 Bytes
/
Copy pathrelease.yml
File metadata and controls
38 lines (35 loc) · 884 Bytes
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
name: release
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
build-target: linux
- os: windows-latest
build-target: win
- os: macos-latest
build-target: osx
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@master
with:
node-version: 16
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: npm install
- name: Build reference CLI
run: npm run build-${{ matrix.build-target }}
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish