mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-12-03 04:18:01 +08:00
23 lines
673 B
YAML
23 lines
673 B
YAML
on: workflow_dispatch
|
|
|
|
jobs:
|
|
push-to-myget:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@master
|
|
|
|
- name: setup nuget.exe
|
|
uses: NuGet/setup-nuget@v1.0.5
|
|
|
|
- name: build and push
|
|
shell: pwsh
|
|
run: |
|
|
cd build
|
|
.\build.ps1
|
|
nuget pack build-for-myget.nuspec -version 3.2.0-beta.${env:GITHUB_RUN_NUMBER}
|
|
$nupkgName = @(gci *.nupkg)[0].Name
|
|
$mygetSourcePath = "https://www.myget.org/F/handycontrol"
|
|
nuget setApiKey ${{ secrets.MYGETTOKEN }} -Source $mygetSourcePath
|
|
nuget push $nupkgName -Source $mygetSourcePath
|