Skip to content

Commit 0feb297

Browse files
committed
GHA workflow: publish to NuGet on tag
1 parent c014d85 commit 0feb297

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
- name: build
1717
run: dotnet build --configuration Release
1818
- name: pack
19-
run: dotnet pack --no-build \
20-
--configuration Release mongo-declarative-indexes/mongo-declarative-indexes.csproj \
21-
-p:PackageVersion=${{ github.event.release.tag_name }} \
22-
--output .
19+
run: >-
20+
dotnet pack --no-build
21+
--configuration Release mongo-declarative-indexes/mongo-declarative-indexes.csproj
22+
-p:PackageVersion=${{ github.event.release.tag_name }}
23+
# --output .
24+
2325
-name: push
2426
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)