Skip to content

Commit 7e9fb88

Browse files
committed
try fix publish error
1 parent f94bbdb commit 7e9fb88

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ jobs:
3636
run: dotnet build --no-restore
3737
- name: Test
3838
run: dotnet test --no-build --verbosity normal
39-
- name: Publish NuGet
40-
# You may pin to the exact commit or the version.
41-
# uses: brandedoutcast/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc
42-
uses: brandedoutcast/[email protected]
43-
with:
44-
# Filepath of the project to be packaged, relative to root of repository
45-
PROJECT_FILE_PATH: TiaCodegen/DotNetProjects.TiaCodegen.csproj
46-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
39+
- name: Package
40+
run: dotnet pack -c Release -o . TiaCodegen/DotNetProjects.TiaCodegen.csproj
41+
- name: Publish
42+
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)