mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-11-30 19:08:08 +08:00
Merge branch 'master' of https://github.com/HandyOrg/HandyControl
This commit is contained in:
commit
00a07a62eb
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -1,5 +1,3 @@
|
||||
name: build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
@ -8,19 +6,9 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: setup nuget.exe
|
||||
uses: NuGet/setup-nuget@v1.0.5
|
||||
with:
|
||||
nuget-api-key: ${{ secrets.MYGETTOKEN }}
|
||||
nuget-version: '5.x'
|
||||
|
||||
- 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 push $nupkgName -Source $mygetSourcePath
|
||||
|
22
.github/workflows/push-to-myget.yml
vendored
Normal file
22
.github/workflows/push-to-myget.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user