Repository navigation
54 lines (49 loc) · 1.81 KB
/
Copy pathserver-release.yml
File metadata and controls
54 lines (49 loc) · 1.81 KB
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
# This workflow will build the TrackingServer Electron.NET application for Windows when a release is published
name: "ReFlex Server: Publish (Win)"
on:
release:
types: published
jobs:
build-trackingserver:
runs-on: windows-latest
name: build electron app (Win)
steps:
- name: checkout repo
uses: actions/checkout@main
- name: Get Release
id: get_release
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Get Version String
id: get_version
uses: mad9000/actions-find-and-replace-string@1
with:
source: ${{ steps.get_release.outputs.tag_name }}
find: 'v'
replace: ''
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Electron.NET Build
run: npm run build:server:electron-win
- name: Attach TrackingServer Setup as Build Artifact
uses: actions/upload-artifact@main
with:
name: Tracking Server ${{ steps.get_version.outputs.value }}
path: ${{ github.workspace }}/tools/ReFlex.TrackingServer/bin/Desktop/ReFlex TrackingServer Setup ${{ steps.get_version.outputs.value }}.exe
- name: Upload to Release
uses: actions/upload-release-asset@main
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_name: Tracking Server ${{ steps.get_version.outputs.value }}
asset_path: ${{ github.workspace }}/tools/ReFlex.TrackingServer/bin/Desktop/ReFlex TrackingServer Setup ${{ steps.get_version.outputs.value }}.exe
asset_content_type: application/vnd.microsoft.portable-executable