File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 set -e
2121 echo "[$(date)] Starting deployment..."
2222
23+ # Install .NET 10 SDK if not present
24+ DOTNET_ROOT="/root/.dotnet"
25+ if ! $DOTNET_ROOT/dotnet --list-sdks 2>/dev/null | grep -q "10.0"; then
26+ echo "[$(date)] Installing .NET 10 SDK..."
27+ wget -q https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz -O /tmp/dotnet-sdk-10.tar.gz
28+ tar -xzf /tmp/dotnet-sdk-10.tar.gz -C $DOTNET_ROOT
29+ rm /tmp/dotnet-sdk-10.tar.gz
30+ echo "[$(date)] .NET 10 SDK installed successfully"
31+ else
32+ echo "[$(date)] .NET 10 SDK already installed"
33+ fi
34+
2335 # Navigate to repository
2436 cd /root/EasyAppDev.Blazor.AutoComplete
2537
3042
3143 # Publish the application
3244 echo "[$(date)] Publishing application..."
33- /root/.dotnet /dotnet publish samples/AutoComplete.Playground -c Release -o /var/www/blazorautocomplete
45+ $DOTNET_ROOT /dotnet publish samples/AutoComplete.Playground -c Release -o /var/www/blazorautocomplete
3446
3547 # Copy RCL static assets
3648 echo "[$(date)] Copying RCL static assets..."
You can’t perform that action at this time.
0 commit comments