Skip to content

Commit

Permalink
ci: Test using github release
Browse files Browse the repository at this point in the history
  • Loading branch information
Crown0815 committed Dec 29, 2023
1 parent 76cd2bf commit 3d67c22
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/publish_tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,21 @@ jobs:
- name: Package
run: dotnet pack --configuration Release --output nuget --nologo -p:Version=${{ steps.version.outputs.nuGetVersionV2 }}

- name: Tag Repository
uses: rickstaa/action-create-tag@v1
- name: Generate Release Notes
run: |-
dotnet tool install --global ConventionalChangelog --version 0.7.0
changelog "${{ github.workspace }}" >> "changelog.md"
- name: Create a Release
uses: comnoco/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: "v${{ steps.version.outputs.semVer }}"
tag_name: "v${{ steps.version.outputs.semVer }}"
release_name: "${{ steps.version.outputs.semVer }}"
body_path: "changelog.md"
draft: true
prerelease: ${{ steps.version.outputs.preReleaseLabel != '' }}

- name: Publish
run: dotnet nuget push "**/*.nupkg" --source nuget.org --api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit 3d67c22

Please sign in to comment.