Skip to content

Commit 4969d1f

Browse files
committed
Remove Docker workflow and enhance NuGet package workflow
- Removed `docker-package-publish.yml`. - Enhanced `nuget-package.yml` to build and pack additional projects (`Gml.Interfaces`, `Gml.Dto`, and `Gml.Domains`). - Updated solution file to reflect workflow changes.
1 parent 66b2a09 commit 4969d1f

File tree

3 files changed

+19
-39
lines changed

3 files changed

+19
-39
lines changed

.github/workflows/docker-package-publish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/nuget-package.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,26 @@ jobs:
2424
- name: Restore dependencies
2525
run: dotnet restore
2626

27-
- name: Build project
28-
run: dotnet build src/Gml.Core.Interfaces/Gml.Core.Interfaces.csproj --configuration Release
27+
- name: Build Gml.Interfaces
28+
run: dotnet build src/Gml.Interfaces/Gml.Interfaces.csproj --configuration Release
2929

30-
- name: Pack NuGet package
31-
run: dotnet pack src/Gml.Core.Interfaces/Gml.Core.Interfaces.csproj --configuration Release --no-build --output ./nupkgs
30+
- name: Pack Gml.Interfaces
31+
run: dotnet pack src/Gml.Interfaces/Gml.Interfaces.csproj --configuration Release --no-build --output ./nupkgs
32+
33+
- name: Build Gml.Domains
34+
run: dotnet build src/Gml.Domains/Gml.Domains.csproj --configuration Release
35+
36+
- name: Pack Gml.Domains
37+
run: dotnet pack src/Gml.Domains/Gml.Domains.csproj --configuration Release --no-build --output ./nupkgs
38+
39+
- name: Build Gml.Dto
40+
run: dotnet build src/Gml.Dto/Gml.Dto.csproj --configuration Release
41+
42+
- name: Pack Gml.Dto
43+
run: dotnet pack src/Gml.Dto/Gml.Dto.csproj --configuration Release --no-build --output ./nupkgs
3244

3345
- name: Publish to NuGet.org
34-
run: dotnet nuget push "./nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
46+
run: dotnet nuget push "./nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
3547

3648
- name: Publish to GitHub Packages
37-
run: dotnet nuget push "./nupkgs/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
49+
run: dotnet nuget push "./nupkgs/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate

Gml.Core.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "common", "common", "{94BDAC
88
ProjectSection(SolutionItems) = preProject
99
.editorconfig = .editorconfig
1010
.gitignore = .gitignore
11-
.github\workflows\docker-package-publish.yml = .github\workflows\docker-package-publish.yml
1211
README.md = README.md
1312
LICENSE = LICENSE
13+
.github\workflows\nuget-package.yml = .github\workflows\nuget-package.yml
1414
EndProjectSection
1515
EndProject
1616
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gml.Core", "src\Gml.Core\Gml.Core.csproj", "{21CA74E3-F9EA-4640-B5EF-EA3428FEECE8}"

0 commit comments

Comments
 (0)