-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (68 loc) · 2.57 KB
/
release.yml
File metadata and controls
85 lines (68 loc) · 2.57 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Pack Nuget
on:
push:
branches: [ "action/release" ]
pull_request:
branches: [ "action/release" ]
jobs:
nuget-abstraction:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Build the Project
run: dotnet build ./src/Lemon.ModuleNavigation --configuration Release
- name: Pack Nuget
run: dotnet pack ./src/Lemon.ModuleNavigation --configuration Release --no-build -o ./nugets
- name: Publish NuGet package
run: |
if [ -n "$(find ./nugets -name '*.nupkg')" ]; then
dotnet nuget push "./nugets/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
fi
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: nugets-abstraction
path: ./nugets
nuget-avaloniaui:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Build the Project
run: dotnet build ./src/Lemon.ModuleNavigation.Avaloniaui --configuration Release
- name: Pack Nuget
run: dotnet pack ./src/Lemon.ModuleNavigation.Avaloniaui --configuration Release --no-build -o ./nugets
- name: Publish NuGet package
run: |
if [ -n "$(find ./nugets -name '*.nupkg')" ]; then
dotnet nuget push "./nugets/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
fi
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: nugets-avaloniaui
path: ./nugets
nuget-wpf:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build the WPF Project
run: dotnet build ./src/Lemon.ModuleNavigation.Wpf --configuration Release
- name: Pack WPF Nuget
run: dotnet pack ./src/Lemon.ModuleNavigation.Wpf --configuration Release --no-build -o ./nugets
- name: Publish WPF NuGet package
run: |
if (Test-Path "./nugets/*.nupkg") {
dotnet nuget push ".\nugets\*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
}
- name: Upload WPF NuGet Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: nugets-wpf
path: ./nugets