Update and rename build.yml to push-to-myget.yml
This commit is contained in:
1 parent
b2116f5f21
commit
98b9808f97
1 file changed
-2
@@ -1,24 +0,0 @@
|
||||
name: build
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: setup nuget.exe
|
||||
uses: NuGet/setup-nuget@v1.0.5
|
||||
|
||||
- name: build
|
||||
shell: pwsh
|
||||
run: |
|
||||
cd build
|
||||
.\build.ps1
|
||||
nuget pack build-for-myget.nuspec
|
||||
$nupkgName = @(gci *.nupkg)[0].Name
|
||||
$mygetSourcePath = "https://www.myget.org/F/handycontrol"
|
||||
nuget setApiKey ${{ secrets.MYGETTOKEN }} -Source $mygetSourcePath
|
||||
nuget push $nupkgName -Source $mygetSourcePath
|
||||
Reference in new issue
Block a user