-
Notifications
You must be signed in to change notification settings - Fork 106
51 lines (44 loc) · 1.26 KB
/
NUnit3TestAdapter.Myget.Publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: NUnit3TestAdapter.Myget.Publish
on:
push:
branches:
- main
- master
- release
- 'v3'
- myget
workflow_dispatch:
defaults:
run:
shell: pwsh
jobs:
build-windows:
name: Windows Build
runs-on: windows-latest
steps:
- name: ⤵Checkout Source
uses: actions/checkout@v4
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Build
run: .\build.ps1 -t QuickRelease
- name: 💾 Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Package
path: package
- name: Publish nupkg and snupkg to Myget.org
run: |
foreach($file in (Get-ChildItem package -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.PUBLISHMYGET }}" --source https://www.myget.org/F/nunit/api/v3/index.json --skip-duplicate
}
foreach($file in (Get-ChildItem "package" -Recurse -Include *.snupkg)) {
dotnet nuget push $file --api-key "${{ secrets.PUBLISHMYGET }}" --source https://www.myget.org/F/nunit/api/v3/index.json --skip-duplicate
}