File tree Expand file tree Collapse file tree 10 files changed +32
-14
lines changed Expand file tree Collapse file tree 10 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,16 @@ jobs:
21
21
dotnet-version : 3.1.200
22
22
23
23
- name : Restore library
24
- run : dotnet restore BlazorLazyLoading.sln
24
+ run : dotnet restore -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
25
25
26
26
- name : Build library
27
- run : dotnet build -c Release BlazorLazyLoading.sln
27
+ run : dotnet build -c Release -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
28
28
29
29
- name : Test library
30
- run : dotnet test -c Release BlazorLazyLoading.sln
30
+ run : dotnet test -c Release -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
31
31
32
32
- name : Pack library
33
- run : dotnet pack -c Release BlazorLazyLoading.sln
33
+ run : dotnet pack -c Release -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
34
34
35
35
- name : Upload artifacts
36
36
uses : actions/upload-artifact@v1
44
44
- name : Build demo
45
45
run : dotnet build -c Release -p:BLLUseLocalNugetPackages=true demo/Demo.sln
46
46
47
+ - name : Publish demo
48
+ run : dotnet publish -c Release -o output/demo -p:BLLUseLocalNugetPackages=true demo/Demo.sln
49
+
47
50
- name : Test demo
48
51
run : dotnet test -c Release demo/Demo.sln
Original file line number Diff line number Diff line change @@ -28,28 +28,31 @@ jobs:
28
28
dotnet-version : 3.1.200
29
29
30
30
- name : Restore library
31
- run : dotnet restore BlazorLazyLoading.sln
31
+ run : dotnet restore -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
32
32
33
33
- name : Build library
34
- run : dotnet build -c Release BlazorLazyLoading.sln
34
+ run : dotnet build -c Release -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
35
35
36
36
- name : Test library
37
- run : dotnet test -c Release BlazorLazyLoading.sln
37
+ run : dotnet test -c Release -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
38
38
39
39
- name : Pack library
40
- run : dotnet pack -c Release BlazorLazyLoading.sln
40
+ run : dotnet pack -c Release -p:BLLUseLocalNugetPackages=true BlazorLazyLoading.sln
41
41
42
42
- name : Restore demo
43
43
run : dotnet restore -p:BLLUseLocalNugetPackages=true demo/Demo.sln
44
44
45
45
- name : Build demo
46
46
run : dotnet build -c Release -p:BLLUseLocalNugetPackages=true demo/Demo.sln
47
47
48
+ - name : Publish demo
49
+ run : dotnet publish -c Release -o output/demo -p:BLLUseLocalNugetPackages=true demo/Demo.sln
50
+
48
51
- name : Test demo
49
52
run : dotnet test -c Release demo/Demo.sln
50
53
51
54
- name : Push package to NuGet
52
- run : dotnet nuget push output/** /*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
55
+ run : dotnet nuget push output/nuget /*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
53
56
54
57
- name : Upload artifacts
55
58
uses : actions/upload-artifact@v1
Original file line number Diff line number Diff line change 5
5
<SolutionDir Condition =" '$(SolutionDir)' == ''" >$(MSBuildThisFileDirectory)</SolutionDir >
6
6
</PropertyGroup >
7
7
8
+ <!-- Convert $(BLLUseLocalNugetPackages) to bool -->
9
+ <PropertyGroup >
10
+ <BLLUseLocalNugetPackages Condition =" '$(BLLUseLocalNugetPackages)' == ''" >false</BLLUseLocalNugetPackages >
11
+ </PropertyGroup >
12
+
8
13
</Project >
Original file line number Diff line number Diff line change 2
2
3
3
<Import Project =" LocalNugetVersion.props" />
4
4
5
+ <PropertyGroup >
6
+ <!-- Polyfill $(SolutionDir) -->
7
+ <SolutionDir Condition =" '$(SolutionDir)' == ''" >$(MSBuildThisFileDirectory)</SolutionDir >
8
+ </PropertyGroup >
9
+
5
10
<!-- Convert $(BLLUseLocalNugetPackages) to bool -->
6
11
<PropertyGroup >
7
12
<BLLUseLocalNugetPackages Condition =" '$(BLLUseLocalNugetPackages)' == ''" >false</BLLUseLocalNugetPackages >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<configuration >
3
3
<packageSources >
4
- <add key =" local-repo" value =" ../output/" />
4
+ <add key =" local-repo" value =" ../output/nuget/ " />
5
5
</packageSources >
6
6
</configuration >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<configuration >
3
3
<packageSources >
4
- <add key =" local-repo" value =" output/" />
4
+ <add key =" local-repo" value =" output/nuget/ " />
5
5
</packageSources >
6
6
</configuration >
Original file line number Diff line number Diff line change 26
26
<None Remove =" build\bin\**" />
27
27
</ItemGroup >
28
28
29
- <Target Name =" CopyBinToBuild" AfterTargets =" Build" >
29
+ <Target Name =" CopyBinToBuild" AfterTargets =" Build" Condition = " !$(BLLUseLocalNugetPackages) " >
30
30
<Message Importance =" high" Text =" [HACK] Copying bin files..." />
31
31
<ItemGroup >
32
32
<BinFiles Include =" $(MSBuildThisFileDirectory)bin/$(Configuration)/$(TargetFramework)/**/*.*" />
Original file line number Diff line number Diff line change 8
8
</ItemGroup >
9
9
10
10
<PropertyGroup >
11
- <PackageOutputDir >$(MSBuildThisFileDirectory)..\output</PackageOutputDir >
12
- <PackageOutputPath >$(MSBuildThisFileDirectory)..\output</PackageOutputPath >
11
+ <PackageOutputDir >$(MSBuildThisFileDirectory)..\output\nuget </PackageOutputDir >
12
+ <PackageOutputPath >$(MSBuildThisFileDirectory)..\output\nuget </PackageOutputPath >
13
13
</PropertyGroup >
14
14
15
15
<PropertyGroup >
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ *
2
+ ! .gitignore
You can’t perform that action at this time.
0 commit comments