SideCarCLI–create releases

Summary links SideCarCLI

NoName + Link 
1Description
2Specifications
3Refactor specifications and code
4Create Release
5Finish interceptors
6Send part of command to interceptors
7Line Interceptors
8Finish process after some time
9Documetation Diagram
10Technical Summary
11Create dotnet tool
( Description : SideCar for CLI applications. Interceptors for Line, Finish, Timer . See Code )

Because all code is in Github, the easy way is GitHub Actions , https://github.com/features/actions . Some modifications are required on CSPROJ file to build for Linux or Windows :

<PropertyGroup>

<OutputType>Exe</OutputType>

<TargetFramework>netcoreapp3.1</TargetFramework>

<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>

</PropertyGroup>

 

And after 6 commits, this is the ( almost) final version:

name: .NET Core

on:

push:

branches: [ main ]

pull_request:

branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:

– uses: actions/checkout@v2

– name: Setup .NET Core

uses: actions/setup-dotnet@v1

with:

dotnet-version: 3.1.301

– name: Build

run: |

cd src

cd SideCarCLI

dotnet restore

dotnet build –configuration Release –no-restore -r linux-x64 -o linuxx64

dotnet build –configuration Release –no-restore -r win-x64 -o winx64

– uses: actions/upload-artifact@v2

with:

name: winx64

path: src/SideCarCLI/winx64/

– uses: actions/upload-artifact@v2

with:

name: linuxx64

path: src/SideCarCLI/linuxx64/

#- name: Test

#  run: dotnet test –no-restore –verbosity normal

 

Your job , if you accept, is to modify to use

dotnet publish

with trimmed and self contained and publish single file. ( you can see latest version at https://github.com/ignatandrei/SideCarCLI/blob/main/.github/workflows/dotnet-core.yml )