--- name: build-agent description: Build and publish ShopDB agent and tray executables to Documents folder --- Build the ShopDB endpoint agent and tray applications, then copy them to Documents/shopdb-builds with version information. ## Steps 1. Navigate to agent directory: `C:\Users\270015376\Documents\github\flask-shopdb\agent` 2. Publish the agent service: ``` dotnet publish ShopDbEndpointAgent/ShopDbEndpointAgent.csproj -c Release -o publish/agent ``` 3. Publish the tray application: ``` dotnet publish ShopDbEndpointAgent.Tray/ShopDbEndpointAgent.Tray.csproj -c Release -o publish/tray ``` 4. Create dated build folder: ``` mkdir -p C:/Users/270015376/Documents/shopdb-builds/$(date +%Y%m%d) ``` 5. Copy executables to build folder: - `publish/agent/shopdbagent.exe` - `publish/tray/shopdb-endpoint-tray.exe` 6. Create VERSION.txt with: - Agent version from ShopDbEndpointAgent.csproj - Tray version from ShopDbEndpointAgent.Tray.csproj - Git commit hash (short) - Branch name - Summary of changes in this release ## Expected Output - Executables in: `C:\Users\270015376\Documents\shopdb-builds\YYYYMMDD\` - shopdbagent.exe (typically ~35MB) - shopdb-endpoint-tray.exe (typically ~69MB) - VERSION.txt with release notes ## Notes - Agent and tray versions must be coordinated (bumped together) - If tray publish fails with "file in use", the agent build is still running - wait and retry - Build takes 2-3 minutes total