Update build.yml

This commit is contained in:
NaBian 2021-04-10 17:00:22 +08:00 committed by GitHub
parent 74552140a8
commit 7d1a0eb00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,12 @@ jobs:
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