diff --git a/.github/workflows/deploy-pack.yml b/.github/workflows/deploy-pack.yml index b8e00e4..30401e7 100644 --- a/.github/workflows/deploy-pack.yml +++ b/.github/workflows/deploy-pack.yml @@ -46,10 +46,10 @@ jobs: id: artifactsPath run: echo "::set-output name=NUGET_ARTIFACTS::${{github.workspace}}\artifacts" - - name: Install .NET 6.0.x + - name: Install .NET 8.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: "6.0.x" + dotnet-version: "8.0.x" - name: Build (Framework) run: dotnet build -c Release LrcParser /p:Version=${{needs.check-if-tag.outputs.version}} /p:GenerateDocumentationFile=true @@ -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