Skip to content

Commit

Permalink
Merge pull request #70 from karaoke-dev/fix-release-env
Browse files Browse the repository at this point in the history
Update deploy-pack.yml
  • Loading branch information
andy840119 authored Jul 28, 2024
2 parents 867376d + 7f3df74 commit f87a2ac
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/deploy-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit f87a2ac

Please sign in to comment.