File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
- if [[ -z ${SDK_VERSION+x} ]];
6
- then
7
- echo " Pls provide SDK_VERSION."
8
- exit 1
5
+ if [[ -z ${SDK_VERSION+x} ]]; then
6
+ echo " Pls provide SDK_VERSION."
7
+ exit 1
9
8
fi
10
9
11
- if [[ -z ${NUGET_API_KEY+x} ]];
12
- then
13
- echo " NUGET_API_KEY is unset."
14
- # echo "Trying to retrieve from vaults."
15
- # IMPROBABLE_REFRESH_TOKEN="$(imp-ci secrets read --environment=production --buildkite-org=improbable --secret-type=spatialos-service-account --secret-name=platform-sdk)"
10
+ if [[ -z ${NUGET_API_KEY+x} ]]; then
11
+ echo " NUGET_API_KEY is unset."
12
+ # echo "Trying to retrieve from vaults."
13
+ # IMPROBABLE_REFRESH_TOKEN="$(imp-ci secrets read --environment=production --buildkite-org=improbable --secret-type=spatialos-service-account --secret-name=platform-sdk)"
16
14
fi
17
15
18
16
REPO_ROOT=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd)
@@ -26,7 +24,9 @@ rm -rf $ARTEFACT_DIR/*
26
24
27
25
echo " --- Preparing artefacts for release"
28
26
msbuild $REPO_ROOT /apis/apis.csproj /p:Configuration=Release /p:Version=${SDK_VERSION} /t:Clean,Build -verbosity:minimal
29
- zip -r ${ARTEFACT_DIR} /${SDK_VERSION} -net451.zip ${OUTPUT_DIR} /net451
27
+ pushd ${OUTPUT_DIR} /net451
28
+ zip -r ${ARTEFACT_DIR} /${SDK_VERSION} -net451.zip *
29
+ popd
30
30
cp ${OUTPUT_DIR} /Improbable.SpatialOS.Platform.${SDK_VERSION} .nupkg ${ARTEFACT_DIR}
31
31
32
32
echo " --- Publishing to NuGet"
You can’t perform that action at this time.
0 commit comments