File tree 5 files changed +54
-12
lines changed
5 files changed +54
-12
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a .NET project
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3
+
4
+ name : NuGet Publish
5
+
6
+ on :
7
+ push :
8
+ branches : [ "main" ]
9
+ pull_request :
10
+ branches : [ "main" ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - name : Setup .NET
20
+ uses : actions/setup-dotnet@v3
21
+ with :
22
+ dotnet-version : 6.0.x
23
+ - name : Restore dependencies
24
+ run : dotnet restore
25
+ - name : Build
26
+ run : dotnet build --no-restore
27
+ - name : Test
28
+ run : dotnet test --no-build --verbosity normal
29
+ - name : Build NuGet Packages
30
+ run : |
31
+ dotnet pack Depository/Depository.csproj -c Release -o Packages/
32
+ dotnet pack Depository.Abstraction/Depository.Abstraction.csproj -c Release -o Packages/
33
+ dotnet pack Depository.Core/Depository.Core.csproj -c Release -o Packages/
34
+ dotnet pack Depository.Extensions/Depository.Extensions.csproj -c Release -o Packages/
35
+
36
+ - name : Publish Packages to Artifacts
37
+
38
+ with :
39
+ name : packages
40
+ path : Packages
41
+
42
+ - name : Publish To NuGet
43
+ uses : EasyDesk/action-nuget-push@v1
44
+ with :
45
+ nuget-api-key : ${{ secrets.NUGET_APIKEY }}
46
+ publish-dir : ' Packages'
Original file line number Diff line number Diff line change 8
8
<PackageLicenseExpression >MIT</PackageLicenseExpression >
9
9
<Authors >Kengwang</Authors >
10
10
<Description >The Abstraction of Depository</Description >
11
- <Copyright >Copyright © Kengwang 2022 </Copyright >
11
+ <Copyright >Copyright © Kengwang 2023 </Copyright >
12
12
<PackageProjectUrl >https://github.com/kengwang/Depository</PackageProjectUrl >
13
13
<RepositoryUrl >https://github.com/kengwang/Depository</RepositoryUrl >
14
14
<RepositoryType >git</RepositoryType >
15
15
<PackageTags >IoC</PackageTags >
16
- <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
17
- <Version >0.0.1-pre2</Version >
16
+ <Version >1.0.0</Version >
18
17
<Title >Depository.Abstraction</Title >
19
18
</PropertyGroup >
20
19
Original file line number Diff line number Diff line change 7
7
<LangVersion >latest</LangVersion >
8
8
<Authors >Kengwang</Authors >
9
9
<Description >The Core of Depository</Description >
10
- <Copyright >Copyright © Kengwang 2022 </Copyright >
10
+ <Copyright >Copyright © Kengwang 2023 </Copyright >
11
11
<PackageProjectUrl >https://github.com/kengwang/Depository</PackageProjectUrl >
12
12
<RepositoryUrl >https://github.com/kengwang/Depository</RepositoryUrl >
13
13
<RepositoryType >git</RepositoryType >
14
14
<PackageTags >IoC</PackageTags >
15
- <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
16
- <Version >0.0.1-pre2</Version >
15
+ <Version >1.0.0</Version >
17
16
<Title >Depository.Core</Title >
18
17
<PackageLicenseExpression >MIT</PackageLicenseExpression >
19
18
</PropertyGroup >
Original file line number Diff line number Diff line change 7
7
<LangVersion >latest</LangVersion >
8
8
<Authors >Kengwang</Authors >
9
9
<Description >The Extension of Depository</Description >
10
- <Copyright >Copyright © Kengwang 2022 </Copyright >
10
+ <Copyright >Copyright © Kengwang 2023 </Copyright >
11
11
<PackageProjectUrl >https://github.com/kengwang/Depository</PackageProjectUrl >
12
12
<RepositoryUrl >https://github.com/kengwang/Depository</RepositoryUrl >
13
13
<RepositoryType >git</RepositoryType >
14
14
<PackageTags >IoC</PackageTags >
15
- <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
16
- <Version >0.0.1-pre2</Version >
15
+ <Version >1.0.0</Version >
17
16
<Title >Depository.Extensions</Title >
18
17
<PackageLicenseExpression >MIT</PackageLicenseExpression >
19
18
</PropertyGroup >
Original file line number Diff line number Diff line change 5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<Nullable >enable</Nullable >
7
7
<LangVersion >latest</LangVersion >
8
- <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
9
- <Version >0.0.1-pre2</Version >
8
+ <Version >1.0.0</Version >
10
9
<Title >Depository</Title >
11
10
<Authors >Kengwang</Authors >
12
11
<Description >An IoC Container</Description >
13
- <Copyright >Copyright © Kengwang 2022 </Copyright >
12
+ <Copyright >Copyright © Kengwang 2023 </Copyright >
14
13
<PackageProjectUrl >https://github.com/kengwang/Depository</PackageProjectUrl >
15
14
<RepositoryUrl >https://github.com/kengwang/Depository</RepositoryUrl >
16
15
<RepositoryType >git</RepositoryType >
You can’t perform that action at this time.
0 commit comments