-
-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (51 loc) · 1.61 KB
/
BuildPSI.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build PSIs
on:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16]
os: [windows-latest, macos-latest, ubuntu-latest, self-hosted]
include:
# Define the binary names to use for uploads
- os: ubuntu-latest
file: server
asset_name: server-ubuntu.psi
asset_body: "Ubuntu Server Binary"
- os: self-hosted
file: server
asset_name: server-debian-arm.psi
asset_body: "Debian ARM Server Binary"
- os: windows-latest
file: server.exe
asset_name: server-win.psi
asset_body: "Windows Server Binary"
- os: macos-latest
file: server
asset_name: server-macos.psi
asset_body: "macOS Server Binary"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: ./PSI
run: npm install
- name: Build PSI Image
working-directory: ./PSI
run: npm run build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "PSI/dist/${{ matrix.file }}"
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true
body: ${{ matrix.asset_body }}