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 20
20
- name : Get version from tag
21
21
id : tag_name
22
22
run : echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
23
- shell : bash
24
23
25
24
- name : Check out repository
26
25
uses : actions/checkout@v3.1.0
@@ -60,12 +59,23 @@ jobs:
60
59
61
60
- name : Upload release assets
62
61
uses : softprops/action-gh-release@v1
62
+ id : release_updater
63
63
env :
64
64
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65
65
with :
66
66
body : ${{ steps.changelog_reader.outputs.changes }}
67
67
files : ./artifacts/*.nupkg
68
68
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
+
69
79
- name : Publish to GPR
70
80
run : |
71
81
dotnet nuget push "./artifacts/*.nupkg" \
You can’t perform that action at this time.
0 commit comments