diff --git a/.github/workflows/features-prs.yml b/.github/workflows/features-prs.yml index be4f52d..1e4bc55 100644 --- a/.github/workflows/features-prs.yml +++ b/.github/workflows/features-prs.yml @@ -4,10 +4,12 @@ on: push: branches: - '*' + - '*/*' - '!master' # all branches except master pull_request: branches: - '*' + - '*/*' - '!master' # all branches except master env: @@ -34,25 +36,25 @@ jobs: dotnet-version: 3.1.200 - name: Restore library - run: dotnet restore src/BlazorLazyLoading.sln --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet restore src/BlazorLazyLoading.sln -p:BLLUseLocalNugetPackages=true - name: Build library - run: dotnet build src/BlazorLazyLoading.sln -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet build src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Test library run: dotnet test src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Pack library - run: dotnet pack src/BlazorLazyLoading.sln -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet pack src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Restore demo - run: dotnet restore demo/Demo.sln --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet restore demo/Demo.sln -p:BLLUseLocalNugetPackages=true - name: Build demo - run: dotnet build demo/Demo.sln -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet build demo/Demo.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Publish demo - run: dotnet publish demo/ServerHost/ServerHost.csproj -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true -o output/demo + run: dotnet publish demo/ServerHost/ServerHost.csproj -c Release -p:BLLUseLocalNugetPackages=true -o output/demo - name: Test demo run: dotnet test demo/Demo.sln -c Release -p:BLLUseLocalNugetPackages=true diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index b4e6da9..488eaa1 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -33,25 +33,25 @@ jobs: dotnet-version: 3.1.200 - name: Restore library - run: dotnet restore src/BlazorLazyLoading.sln --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet restore src/BlazorLazyLoading.sln -p:BLLUseLocalNugetPackages=true - name: Build library - run: dotnet build src/BlazorLazyLoading.sln -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet build src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Test library run: dotnet test src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Pack library - run: dotnet pack src/BlazorLazyLoading.sln -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet pack src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Restore demo - run: dotnet restore demo/Demo.sln --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet restore demo/Demo.sln -p:BLLUseLocalNugetPackages=true - name: Build demo - run: dotnet build demo/Demo.sln -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true + run: dotnet build demo/Demo.sln -c Release -p:BLLUseLocalNugetPackages=true - name: Publish demo - run: dotnet publish demo/ServerHost/ServerHost.csproj -c Release --disable-parallel -p:BLLUseLocalNugetPackages=true -o output/demo + run: dotnet publish demo/ServerHost/ServerHost.csproj -c Release -p:BLLUseLocalNugetPackages=true -o output/demo - name: Test demo run: dotnet test demo/Demo.sln -c Release -p:BLLUseLocalNugetPackages=true diff --git a/src/BlazorLazyLoading.sln b/src/BlazorLazyLoading.sln index d5a6063..59e4b63 100644 --- a/src/BlazorLazyLoading.sln +++ b/src/BlazorLazyLoading.sln @@ -17,6 +17,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{593AE082-BD15-4FEB-8DC2-20D4ABA3AFD4}" ProjectSection(SolutionItems) = preProject nuget\Directory.Build.props = nuget\Directory.Build.props + nuget\GitVersion.proj_ = nuget\GitVersion.proj_ nuget\NugetCommon.props = nuget\NugetCommon.props EndProjectSection EndProject diff --git a/src/nuget/Directory.Build.props b/src/nuget/Directory.Build.props index 19f969e..501e1a4 100644 --- a/src/nuget/Directory.Build.props +++ b/src/nuget/Directory.Build.props @@ -12,6 +12,7 @@ + icon.png diff --git a/src/nuget/GitVersion.proj_ b/src/nuget/GitVersion.proj_ new file mode 100644 index 0000000..8a42f80 --- /dev/null +++ b/src/nuget/GitVersion.proj_ @@ -0,0 +1,18 @@ + + + + /tmp + $(Temp)/$(SolutionName)/GitVersion/obj + $(Temp)/$(SolutionName)/GitVersion/bin + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + diff --git a/src/nuget/NugetCommon.props b/src/nuget/NugetCommon.props index 66928b5..d3932a4 100644 --- a/src/nuget/NugetCommon.props +++ b/src/nuget/NugetCommon.props @@ -1,11 +1,4 @@ - - - - all - runtime; build; native; contentfiles; analyzers - - $(RepoDir)output\nuget @@ -32,7 +25,19 @@ Ivan Sanz Carasa (isc30) - + + + + + + + + $(Version) + + + + + $(NuspecProperties);configuration=$(Configuration)