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