Files
HandyControl/.github/workflows/build.yml
T
2021-04-10 17:08:40 +08:00

25 lines
651 B
YAML

name: build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: setup nuget.exe
uses: NuGet/setup-nuget@master
- name: build
shell: pwsh
run: |
cd build
.\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