Skip to content

Commit 93337f3

Browse files
author
Chris Maunder
committed
create packages script now github action enabled
1 parent 2a041a3 commit 93337f3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

devops/build/create_packages.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ externalModulesDir="CodeProject.AI-Modules"
6161
serverDir="CodeProject.AI-Server"
6262

6363
# Location of the utils script in the main CodeProject.AI server repo
64-
utilsScriptGitHubUrl='https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/src/scripts/utils.sh'
64+
utilsScriptGitHubUrl='https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/src/scripts'
6565

6666
# Override some values via parameters ::::::::::::::::::::::::::::::::::::::::::
6767

@@ -114,10 +114,6 @@ popd >/dev/null
114114
sdkPath="${rootDirPath}/${srcDirName}/${sdkDir}"
115115
utilsScriptsDirPath="${rootDirPath}/src/scripts"
116116

117-
if [ "${githubAction}" == true ]; then
118-
utilsScriptsDirPath="${utilsScriptGitHubUrl}"
119-
fi
120-
121117
# Standard output may be used as a return value in the functions. Expose stream
122118
# 3 so we can do 'echo "Hello, World!" >&3' within these functions for debugging
123119
# without interfering with return values.
@@ -144,13 +140,15 @@ function correctLineEndings () {
144140
fi
145141
}
146142

147-
if [ "${githubAction}" != true ]; then
143+
if [ "${githubAction}" == true ]; then
144+
curl -sL ${utilsScriptGitHubUrl}/utils.sh -o utils.sh
145+
source utils.sh
146+
rm utils.sh
147+
else
148148
correctLineEndings ${utilsScriptsDirPath}/utils.sh
149+
source ${utilsScriptsDirPath}/utils.sh
149150
fi
150151

151-
# "platform" will be set by this script
152-
source ${utilsScriptsDirPath}/utils.sh
153-
154152
# Helper method ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
155153

156154
function doModulePackage () {

0 commit comments

Comments
 (0)