From 4e64d63bfd73676bd402c8f53a7ffda301f0fcfd Mon Sep 17 00:00:00 2001 From: DavidMeow Date: Tue, 25 May 2021 16:00:11 +0800 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9acf002..e9a920b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -26,9 +26,19 @@ jobs: #任务2:测试 - name: Test run: dotnet test --no-build --verbosity normal - #任务3:发布nuget + #任务3:发布nuget - name: Publish uses: brandedoutcast/publish-nuget@v2.5.2 with: PROJECT_FILE_PATH: MeowIOTBot.csproj #确定发布项目名 NUGET_KEY: ${{secrets.NUGET_API_KEY}} #使用专用key + #任务4:创建github release + - name: Create GitHub release + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.ACC_TOKEN }}" + automatic_release_tag: ${{ env.ReleaseVersion }} + title: ${{ env.ReleaseVersion }} + prerelease: false + files: | + artifacts/packages/*