deploy script for IO project to deploy and test

This commit is contained in:
atef 2026-04-10 15:19:18 +02:00
parent 1e12bc708e
commit 11e85f304a
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#!/bin/bash
dotnet_version='net6.0'
salimax_ip="$1"
is_release="$2" # Pass --release if this is a real release
username='inesco'
root_password='Sodistore0918425'
DOTNET="/snap/dotnet-sdk_60/current/dotnet"
set -e
echo -e "\n============================ Build ============================\n"
"$DOTNET" publish \
./GpioTestingProject.csproj \
-p:PublishTrimmed=false \
-c Release \
-r linux-arm64
echo -e "\n============================ Deploy ============================\n"
rsync -v \
--exclude '*.pdb' \
./bin/Release/$dotnet_version/linux-arm64/publish/* \
$username@"$salimax_ip":~/