Skip to content

Commit 11c43d1

Browse files
committed
Create a GitHub release after publishing the NuGet package
Remaining TODO: use an actual body. For example, from the annotated tag?
1 parent 09f1e32 commit 11c43d1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.ref == 'refs/heads/prerelease' || startsWith(github.ref, 'refs/tags')
4141
name: Publish NuGet package
4242
steps:
43-
- name: Create tag
43+
- name: Create Tag
4444
if: github.ref == 'refs/heads/prerelease'
4545
uses: tvdias/[email protected]
4646
with:
@@ -52,3 +52,13 @@ jobs:
5252
- run: dotnet nuget push ${{ needs.package.outputs.nupkg-filename }} --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
5353
- run: dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
5454
- run: dotnet nuget push ${{ needs.package.outputs.nupkg-filename }} --source github
55+
- name: Create Release
56+
uses: actions/create-release@v1
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
with:
60+
tag_name: ${{ needs.package.outputs.version }}
61+
release_name: Release ${{ needs.package.outputs.version }}
62+
body: ""
63+
draft: false
64+
prerelease: github.ref == 'refs/heads/prerelease'

0 commit comments

Comments
 (0)