chore: supports automatic push to nuget.

This commit is contained in:
NaBian committed 2024-03-24 13:25:30 +08:00
1 parent 9abf222822
commit 408de9b7f1
3 files changed
+37 -21

No files matched your search

+12
View File
@@ -27,7 +27,19 @@ jobs:
- name: Publish
working-directory: ./build
run: |
git config --local user.name "${{ github.actor }}"
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 --username="${{ github.actor }}" --email="836904362@qq.com" --pre-release=${{ inputs.pre_release }}
- name: Push git changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true
- name: Push to nuget
run: dotnet nuget push ./build/outputs/nuget/*nupkg -k ${{ secrets.NUGETTOKEN }}
+2
View File
@@ -1,3 +1,5 @@
name: Push to myget
on: workflow_dispatch
jobs: