chore: update build.cake.

This commit is contained in:
NaBian committed 2025-05-20 17:43:08 +08:00
1 parent 0aaf05790a
commit ea09368305
3 files changed
+150 -39

No files matched your search

+1 -2
View File
@@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
@@ -21,5 +21,4 @@ jobs:
run: |
dotnet new tool-manifest
dotnet tool install cake.tool --version 4.0.0
dotnet tool install minver-cli --version 3.0.0
dotnet cake
+1 -5
View File
@@ -31,8 +31,7 @@ jobs:
git config --local user.email "836904362@qq.com"
dotnet new tool-manifest
dotnet tool install cake.tool --version 4.0.0
dotnet tool install minver-cli --version 3.0.0
dotnet cake --target publish --username="${{ github.actor }}" --email="836904362@qq.com" --pre-release=${{ inputs.pre_release }}
dotnet cake --target publish --username="${{ github.actor }}" --email="836904362@qq.com" --pre-release=${{ inputs.pre_release }} --nuget-token=${{ secrets.NUGETTOKEN }}
- name: Push git changes
uses: ad-m/github-push-action@master
@@ -41,9 +40,6 @@ jobs:
branch: ${{ github.ref }}
tags: true
- name: Push to nuget
run: dotnet nuget push ./build/outputs/nuget/HandyControl.*nupkg -k ${{ secrets.NUGETTOKEN }} -s https://api.nuget.org/v3/index.json
- name: Create github release
uses: softprops/action-gh-release@v2
with: