Skip to content

Commit eec30a3

Browse files
bugfix: store notes in environment variable
1 parent 5a26979 commit eec30a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
name: Publish to Nuget.org
2323
runs-on: windows-latest
2424
needs: extract
25+
env:
26+
NOTES: ${{ needs.extract.outputs.notes }}
2527
steps:
2628
- name: Checkout Repository
2729
uses: actions/checkout@v2
@@ -32,6 +34,6 @@ jobs:
3234
- name: Run Project Tests
3335
run: dotnet test --no-restore -c Release
3436
- name: Pack Projects into Nuget Packages
35-
run: dotnet pack --no-restore -c Release /p:Version=${{ needs.extract.outputs.version }} /p:PackageReleaseNotes=${{ needs.extract.outputs.notes }}
37+
run: dotnet pack --no-restore -c Release /p:Version=${{ needs.extract.outputs.version }} /p:PackageReleaseNotes=${Env:NOTES}
3638
- name: Publish to Nuget.org
3739
run: dotnet nuget push */**.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)