This repository was archived by the owner on Jun 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautomated.build
More file actions
59 lines (47 loc) · 1.32 KB
/
automated.build
File metadata and controls
59 lines (47 loc) · 1.32 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
57
58
59
#version 1
if host Windows
set target-platforms Windows
endif
if host MacOS
set target-platforms MacOS
endif
if host Linux
set target-platforms Linux
endif
set build-property Configuration Release
generate
if host MacOS
native-execute Build/PreBuildMacOS.sh
endif
if host Linux
native-execute Build/PreBuildLinux.sh
endif
build
if host Windows
native-execute powershell.exe -ExecutionPolicy Bypass .\Build\PostBuildWindows.ps1
endif
if host MacOS
native-execute Build/PostBuildMacOS.sh
endif
if host Linux
native-execute Build/PostBuildLinux.sh
endif
set execute-configuration Release
execute netcode.io.test
set package-format nuget/zip
pack . netcode.io.$TARGET_PLATFORM.nupkg $TARGET_PLATFORM
if host Windows
if file-exists C:\Users\build\Documents\nuget_api_key.txt
push C:\Users\build\Documents\nuget_api_key.txt netcode.io.$TARGET_PLATFORM.nupkg https://www.nuget.org/api/v2/package --ignore-on-existing
endif
endif
if host MacOS
if file-exists /Users/june/nuget_api_key.txt
push /Users/june/nuget_api_key.txt netcode.io.$TARGET_PLATFORM.nupkg https://www.nuget.org/api/v2/package --ignore-on-existing
endif
endif
if host Linux
if file-exists /srv/nuget_api_key.txt
push /srv/nuget_api_key.txt netcode.io.$TARGET_PLATFORM.nupkg https://www.nuget.org/api/v2/package --ignore-on-existing
endif
endif