forked from RedpointArchive/Protogame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automated.build
35 lines (30 loc) · 932 Bytes
/
automated.build
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
#version 1
if host Windows
set target-platforms Windows
endif
if host MacOS
set target-platforms MacOS,Android,iOS
endif
if host Linux
set target-platforms Linux
endif
generate
build
execute Protogame.Tests
set package-format nuget/zip
pack . Protogame.$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 Protogame.$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 Protogame.$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 Protogame.$TARGET_PLATFORM.nupkg https://www.nuget.org/api/v2/package --ignore-on-existing
endif
endif