diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eceffd1..65893cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,8 @@ on: jobs: build: name: Build + env: + TERM: xterm-256color runs-on: ${{ matrix.os }} strategy: matrix: @@ -25,9 +27,20 @@ jobs: - name: Build KuduSync.NET run: | - dotnet build + dotnet build -p:Configuration=Release - - name: Test + - name: Create NuGet Packages if: matrix.os == 'windows-latest' shell: cmd - run: .\test.cmd + run: .\BuildNugetPackages.cmd + + - uses: actions/upload-artifact@v2 + if: matrix.os == 'windows-latest' + with: + name: nupkg + path: artifacts + + - name: Test Windows + if: matrix.os == 'windows-latest' + shell: cmd + run: .\test.cmd \ No newline at end of file diff --git a/BuildNugetPackages.cmd b/BuildNugetPackages.cmd index 47ee7c1..7798114 100644 --- a/BuildNugetPackages.cmd +++ b/BuildNugetPackages.cmd @@ -6,5 +6,5 @@ set corefx="netcoreapp3.1" set project=".\KuduSync.NET\KuduSync.NET.csproj" set output=".\artifacts" -dotnet pack /p:TargetFramework=%corefx% /p:TargetFrameworks=%corefx% %project% --output "%output%" -dotnet pack /p:TargetFramework=%netfx% /p:TargetFrameworks=%netfx% %project% --output "%output%" \ No newline at end of file +dotnet pack /p:Configuration=Release /p:TargetFramework=%corefx% /p:TargetFrameworks=%corefx% %project% --output "%output%" +dotnet pack /p:Configuration=Release /p:TargetFramework=%netfx% /p:TargetFrameworks=%netfx% %project% --output "%output%" \ No newline at end of file diff --git a/KuduSync.NET/KuduSync.NET.csproj b/KuduSync.NET/KuduSync.NET.csproj index 5b90b52..bace113 100644 --- a/KuduSync.NET/KuduSync.NET.csproj +++ b/KuduSync.NET/KuduSync.NET.csproj @@ -14,13 +14,31 @@ https://github.com/projectkudu/KuduSync.NET amitap Tool for syncing files for deployment, will only copy changed files and delete files that doesn't exists in the destination but only if they were part of the previous deployment. + git + https://github.com/projectkudu/KuduSync.NET.git + + + false + NU5128 + $(AssemblyName) + + + + true + KuduSync.Tool + kudusync + .NET Global $(PackageDescription). + + full + pdbonly + @@ -44,19 +62,6 @@ - + - - - false - NU5128 - $(AssemblyName) - - - - true - KuduSync.Tool - kudusync - .NET Global $(PackageDescription). - \ No newline at end of file