From bd95bf48e1d1e140be6e981cc7444fad9bfda082 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 28 Jul 2024 16:49:20 +0800 Subject: [PATCH 1/2] Update deploy-pack.yml Change the target to .net 8.x --- .github/workflows/deploy-pack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pack.yml b/.github/workflows/deploy-pack.yml index b8e00e4..eb2db66 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 From 7f3df74747ff9d05da5bd5bb5fac0da0ab039dd8 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 28 Jul 2024 16:53:57 +0800 Subject: [PATCH 2/2] 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