Skip to content

Commit e818d9a

Browse files
committed
Start making github releases
1 parent 42ada9c commit e818d9a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/internal-ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,16 @@ jobs:
7070

7171
deploy-nuget:
7272
runs-on: ubuntu-22.04
73-
needs: [ test-plugin, test-plugin-nuget, test-plugin-legacy, test-assetbundle ]
73+
needs: [ test-plugin, test-plugin-nuget, test-plugin-legacy, test-assetbundle ]
7474
environment:
7575
name: "NuGet"
7676
url: "https://www.nuget.org/packages/KSPBuildTools"
7777
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
7878
steps:
79+
- name: Get Changelog Information
80+
uses: drewcassidy/[email protected]
81+
id: yaclog-show
82+
7983
- name: Setup .NET
8084
uses: actions/setup-dotnet@v4
8185
with:
@@ -100,3 +104,12 @@ jobs:
100104
- name: Publish Package to Github
101105
run: |
102106
dotnet nuget push --source "github" ${{ env.NuGetDirectory }}/*.nupkg
107+
108+
- name: Publish to Github Releases
109+
run: >
110+
gh release create ${{ github.ref_name }}
111+
--notes-file "${{ steps.yaclog-show.outputs.body-file }}"
112+
--title "${{ steps.yaclog-show.outputs.name }}"
113+
${{ env.NuGetDirectory }}/*.nupkg
114+
env:
115+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)