diff --git a/.github/workflows/simple-dotnet.yml b/.github/workflows/simple-dotnet.yml new file mode 100644 index 0000000..1045de4 --- /dev/null +++ b/.github/workflows/simple-dotnet.yml @@ -0,0 +1,54 @@ +name: .NET Core Desktop + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + workflow_dispatch: + +jobs: + + build: + + strategy: + matrix: + configuration: [Release] + + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + env: + Solution_Name: Bal.Converter.sln # Replace with your solution name, i.e. MyWpfApp.sln. + + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.0.2 + + # Execute all unit tests in the solution + #- name: Execute unit tests + # run: dotnet test + + - name: publish + run: dotnet publish sources/Bal.Converter/Bal.Converter.csproj /p:PublishProfile=sources/Bal.Converter/Properties/PublishProfiles/FolderProfile.pubxml + + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: published-binary-${{ github.run_number }} + path: | + publish + !publish/**/*.pdb \ No newline at end of file diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..8520705 --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/sources/Bal.Converter.CLI/Bal.Converter.CLI.csproj b/sources/Bal.Converter.CLI/Bal.Converter.CLI.csproj index c7e70f1..2f840bb 100644 --- a/sources/Bal.Converter.CLI/Bal.Converter.CLI.csproj +++ b/sources/Bal.Converter.CLI/Bal.Converter.CLI.csproj @@ -20,7 +20,6 @@ - diff --git a/sources/Bal.Converter.Common/Bal.Converter.Common.csproj b/sources/Bal.Converter.Common/Bal.Converter.Common.csproj index 73d9888..87bd5b5 100644 --- a/sources/Bal.Converter.Common/Bal.Converter.Common.csproj +++ b/sources/Bal.Converter.Common/Bal.Converter.Common.csproj @@ -13,8 +13,8 @@ - - + + diff --git a/sources/Bal.Converter/Bal.Converter.csproj b/sources/Bal.Converter/Bal.Converter.csproj index e4ecfa7..931f06c 100644 --- a/sources/Bal.Converter/Bal.Converter.csproj +++ b/sources/Bal.Converter/Bal.Converter.csproj @@ -23,6 +23,7 @@ Never False false + None @@ -51,15 +52,15 @@ - - - + + + - - + + diff --git a/sources/Bal.Converter/Properties/PublishProfiles/FolderProfile.pubxml b/sources/Bal.Converter/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..1b882f6 --- /dev/null +++ b/sources/Bal.Converter/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,15 @@ + + + + + Release + x64 + ../../publish + FileSystem + <_TargetId>Folder + net6.0-windows10.0.19041.0 + false + + \ No newline at end of file