Skip to content

Commit f49fade

Browse files
committed
14
1 parent 347553f commit f49fade

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ jobs:
1111
- uses: actions/setup-dotnet@v1
1212
- uses: actions/checkout@v2
1313
with:
14-
ref: $GITHUB_REF
14+
ref: ${{ github.event.release.tag_name }}
1515
fetch-depth: 0
1616
- name: build
1717
run: dotnet build --configuration Release
1818
- name: pack
19-
run: dotnet pack --no-build --configuration Release mongo-declarative-indexes/mongo-declarative-indexes.csproj -p:PackageVersion=${{ github.event.release.tag_name }} --output .
19+
run: >
20+
dotnet pack mongo-declarative-indexes/mongo-declarative-indexes.csproj
21+
--no-build
22+
--configuration Release
23+
-p:PackageVersion=${{ github.event.release.tag_name }}
24+
--output .
2025
- name: push
2126
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)