From 7f3df74747ff9d05da5bd5bb5fac0da0ab039dd8 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 28 Jul 2024 16:53:57 +0800 Subject: [PATCH] Update deploy-pack.yml Add step to upload the change to github. --- .github/workflows/deploy-pack.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy-pack.yml b/.github/workflows/deploy-pack.yml index eb2db66..30401e7 100644 --- a/.github/workflows/deploy-pack.yml +++ b/.github/workflows/deploy-pack.yml @@ -86,3 +86,18 @@ jobs: - name: Deploy run: | dotnet nuget push ${{github.workspace}}/artifacts/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_AUTH_TOKEN}} + + # upload the change to the github release page. + - name: Upload Release Asset + uses: softprops/action-gh-release@v1 + with: + token: ${{ secrets.RELEASE_TOKEN }} + files: | + ${{github.workspace}}/artifacts/*.nupkg + draft: true + body: | + Thank you for using this package. This is a tagged release (${{ env.CURRENT_TAG }}). + - name: Generate changelog + run: | + sudo npm install github-release-notes -g + gren release -T ${{secrets.RELEASE_TOKEN}} --tags=${{env.CURRENT_TAG}} --override