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 22
33set -euo pipefail
44
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
98fi
109
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)"
1614fi
1715
1816REPO_ROOT=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd)
@@ -26,7 +24,9 @@ rm -rf $ARTEFACT_DIR/*
2624
2725echo " --- Preparing artefacts for release"
2826msbuild $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
3030cp ${OUTPUT_DIR} /Improbable.SpatialOS.Platform.${SDK_VERSION} .nupkg ${ARTEFACT_DIR}
3131
3232echo " --- Publishing to NuGet"
You can’t perform that action at this time.
0 commit comments