diff --git a/bin/compile b/bin/compile index d13bec5c..c84b89a8 100755 --- a/bin/compile +++ b/bin/compile @@ -53,9 +53,15 @@ if [ -n "$(cat $PROJECT_FILE | grep 'netcoreapp2.0')" ]; then fi export NUGET_PACKAGES="${CACHE_DIR}/nuget/cache" +sed -i "s/NUGETSELOGERLOGIN/${NUGETSELOGERLOGIN}/g" ${BUILD_DIR}/nuget.heroku +sed -i "s/NUGETSELOGERPASSWORD/${NUGETSELOGERPASSWORD}/g" ${BUILD_DIR}/nuget.heroku +rm -f ${BUILD_DIR}/nuget.config +mv ${BUILD_DIR}/nuget.heroku ${BUILD_DIR}/nuget.config + echo "publish ${PROJECT_FILE} for ${BUILD_CONFIGURATION}" dotnet publish $PROJECT_FILE --output ${BUILD_DIR}/heroku_output --configuration ${BUILD_CONFIGURATION} --runtime linux-x64 + if [ -f ${BUILD_DIR}/Procfile ] && grep -q '^web:' ${BUILD_DIR}/Procfile ; then topic "WARNING" echo "Be careful with custom Procfile" | indent