-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (49 loc) · 1.71 KB
/
build.yml
File metadata and controls
56 lines (49 loc) · 1.71 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
55
56
name: SSCBuild
on:
push:
tags:
- "v*"
pull_request:
types: [review_requested]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/setup-msbuild@v1.1
- name: Nuget restore
run: nuget restore
- name: Build client
run: msbuild /t:ChatClient:publish /p:Configuration=Release /p:TargetFramework=net6.0-windows /p:RuntimeIdentifier=win10-x64 /p:SelfContained=false /verbosity:minimal
- name: Build server
run: msbuild /t:ChatServer:publish /p:Configuration=Release /p:TargetFramework=net6.0-windows /p:RuntimeIdentifier=win10-x64 /p:SelfContained=false /verbosity:minimal
- name: Archive client
uses: thedoctor0/zip-release@0.6.2
with:
type: zip
filename: ssc_client-net6.0-windows.zip
path: ChatClient/bin/Release/net6.0-windows/win10-x64/publish
- name: Archive server
uses: thedoctor0/zip-release@0.6.2
with:
filename: ssc_server-net6.0-windows.zip
path: ChatServer/bin/Release/net6.0-windows/win10-x64/publish
- name: Client artifact
uses: actions/upload-artifact@v2
with:
name: client-net6.0-windows
path: ssc_client-net6.0-windows.zip
- name: Server artifact
uses: actions/upload-artifact@v2
with:
name: server-net6.0-windows
path: ssc_server-net6.0-windows.zip
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
files: |
ssc_client-net6.0-windows.zip
ssc_server-net6.0-windows.zip