From 7d1a0eb00c679704eaf1cae98ed2372605e16bb9 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 10 Apr 2021 17:00:22 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a16fb49..eebde414 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,8 +8,14 @@ jobs: steps: - name: checkout uses: actions/checkout@master - + - name: build + shell: pwsh run: | cd build - powershell .\build.ps1 + .\build.ps1 + tools\nuget pack build build-for-myget.nuspec + $nupkgName = @(gci *.nupkg)[0].Name + $mygetSourcePath = "https://www.myget.org/F/handycontrol" + tools\nuget setApiKey ${{ secrets.MYGETTOKEN }} -Source $mygetSourcePath + tools\nuget push $nupkgName -Source $mygetSourcePath