Skip to content

Commit 8108578

Browse files
committed
tested locally and is correct but paths may be different
1 parent 394c9b5 commit 8108578

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
build:
10+
if: startsWith(github.ref, 'refs/tags/v') && github.ref == 'refs/heads/main'
1011
runs-on: ubuntu-latest
1112

1213
steps:
@@ -25,8 +26,8 @@ jobs:
2526
run: dotnet test --configuration Release --no-build
2627

2728
- name: 📦 Pack NuGet package
28-
run: dotnet pack --configuration Release --no-build --output ./nupkg
29+
run: dotnet pack ./src/AStar.Dev.Functional.Extensions/AStar.Dev.Functional.Extensions.csproj --configuration Release --no-build --output ./nupkg
2930

3031
- name: 🚀 Publish to NuGet.org
31-
run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://int.nugettest.org/v3.index.json # https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
32+
run: dotnet nuget push ./**/*.nupkg --skip-duplicate --source https://int.nugettest.org/v3.index.json # https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
3233

0 commit comments

Comments
 (0)