File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2020 - name : Get version from tag
2121 id : tag_name
2222 run : echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
23- shell : bash
2423
2524 - name : Check out repository
2625 uses : actions/checkout@v3.1.0
@@ -60,12 +59,23 @@ jobs:
6059
6160 - name : Upload release assets
6261 uses : softprops/action-gh-release@v1
62+ id : release_updater
6363 env :
6464 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6565 with :
6666 body : ${{ steps.changelog_reader.outputs.changes }}
6767 files : ./artifacts/*.nupkg
6868
69+ - name : Create discussion for release
70+ run : |
71+ gh api \
72+ --method PATCH \
73+ -H "Accept: application/vnd.github+json" \
74+ /repos/${{ github.repository }}/releases/${{ steps.release_updater.outputs.id }} \
75+ -f discussion_category_name='Announcements'
76+ env :
77+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
78+
6979 - name : Publish to GPR
7080 run : |
7181 dotnet nuget push "./artifacts/*.nupkg" \
You can’t perform that action at this time.
0 commit comments