Skip to content

Commit a7c9d9c

Browse files
authored
Don't use absolute path for ZIP (#21)
1 parent 2a33d86 commit a7c9d9c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

scripts/release.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
set -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
98
fi
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)"
1614
fi
1715

1816
REPO_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
@@ -26,7 +24,9 @@ rm -rf $ARTEFACT_DIR/*
2624

2725
echo "--- Preparing artefacts for release"
2826
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
3030
cp ${OUTPUT_DIR}/Improbable.SpatialOS.Platform.${SDK_VERSION}.nupkg ${ARTEFACT_DIR}
3131

3232
echo "--- Publishing to NuGet"

0 commit comments

Comments
 (0)