|
3 | 3 |
|
4 | 4 | name: .NET |
5 | 5 |
|
6 | | -on: |
| 6 | +on: |
7 | 7 | push: |
8 | 8 | tags: |
9 | 9 | - 'v**' |
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | build: |
13 | | - |
14 | 13 | runs-on: macos-14 |
15 | | - |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + include: |
| 17 | + - name: Stellar |
| 18 | + project: Stellar/Stellar.csproj |
| 19 | + output: Stellar/bin/Release |
| 20 | + - name: Stellar.Maui |
| 21 | + project: Stellar.Maui/Stellar.Maui.csproj |
| 22 | + output: Stellar.Maui/bin/Release |
| 23 | + - name: Stellar.Maui.PopUp |
| 24 | + project: Stellar.Maui.PopUp/Stellar.Maui.PopUp.csproj |
| 25 | + output: Stellar.Maui.PopUp/bin/Release |
| 26 | + - name: Stellar.Blazor |
| 27 | + project: Stellar.Blazor/Stellar.Blazor.csproj |
| 28 | + output: Stellar.Blazor/bin/Release |
| 29 | + - name: Stellar.Avalonia |
| 30 | + project: Stellar.Avalonia/Stellar.Avalonia.csproj |
| 31 | + output: Stellar.Avalonia/bin/Release |
| 32 | + - name: Stellar.FluentValidation |
| 33 | + project: Stellar.FluentValidation/Stellar.FluentValidation.csproj |
| 34 | + output: Stellar.FluentValidation/bin/Release |
| 35 | + - name: Stellar.DiskDataCache |
| 36 | + project: Stellar.DiskDataCache/Stellar.DiskDataCache.csproj |
| 37 | + output: Stellar.DiskDataCache/bin/Release |
| 38 | + - name: Stellar.SourceGenerators |
| 39 | + project: Stellar.SourceGenerators/Stellar.SourceGenerators.csproj |
| 40 | + output: Stellar.SourceGenerators/bin/Release |
16 | 41 | steps: |
17 | | - - uses: actions/checkout@v3 |
18 | | - - uses: actions/setup-dotnet@v3 |
19 | | - with: |
20 | | - dotnet-version: '9.x' |
21 | | - |
22 | | - - uses: maxim-lobanov/setup-xcode@v1 |
23 | | - with: |
24 | | - xcode-version: latest-stable |
25 | | - |
26 | | - - name: Install MAUI Workloads |
27 | | - run: dotnet workload install maui --ignore-failed-sources |
28 | | - |
29 | | - - name: Semver Parse |
30 | | - id: version |
31 | | - uses: release-kit/semver@v1.0.10 |
32 | | - |
33 | | - - name: Build Stellar |
34 | | - run: dotnet build Stellar/Stellar.csproj |
35 | | - - name: Create the package |
36 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar/Stellar.csproj |
37 | | - - name: Publish the package to NuGet |
38 | | - run: dotnet nuget push Stellar/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
39 | | - env: |
40 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
41 | | - |
42 | | - - name: Build Stellar.Maui |
43 | | - run: dotnet build Stellar.Maui/Stellar.Maui.csproj |
44 | | - - name: Create the package |
45 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar.Maui/Stellar.Maui.csproj |
46 | | - - name: Publish the package to NuGet |
47 | | - run: dotnet nuget push Stellar.Maui/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
48 | | - env: |
49 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
50 | | - |
51 | | - - name: Build Stellar.Maui.PopUp |
52 | | - run: dotnet build Stellar.Maui.PopUp/Stellar.Maui.PopUp.csproj |
53 | | - - name: Create the package |
54 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar.Maui.PopUp/Stellar.Maui.PopUp.csproj |
55 | | - - name: Publish the package to NuGet |
56 | | - run: dotnet nuget push Stellar.Maui.PopUp/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
57 | | - env: |
58 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
59 | | - |
60 | | - - name: Build Stellar.Blazor |
61 | | - run: dotnet build Stellar.Blazor/Stellar.Blazor.csproj |
62 | | - - name: Create the package |
63 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar.Blazor/Stellar.Blazor.csproj |
64 | | - - name: Publish the package to NuGet |
65 | | - run: dotnet nuget push Stellar.Blazor/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
66 | | - env: |
67 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
68 | | - |
69 | | - - name: Build Stellar.Avalonia |
70 | | - run: dotnet build Stellar.Avalonia/Stellar.Avalonia.csproj |
71 | | - - name: Create the package |
72 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar.Avalonia/Stellar.Avalonia.csproj |
73 | | - - name: Publish the package to NuGet |
74 | | - run: dotnet nuget push Stellar.Avalonia/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
75 | | - env: |
76 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
77 | | - |
78 | | - - name: Build Stellar.FluentValidation |
79 | | - run: dotnet build Stellar.FluentValidation/Stellar.FluentValidation.csproj |
80 | | - - name: Create the package |
81 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar.FluentValidation/Stellar.FluentValidation.csproj |
82 | | - - name: Publish the package to NuGet |
83 | | - run: dotnet nuget push Stellar.FluentValidation/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
84 | | - env: |
85 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
86 | | - |
87 | | - - name: Build Stellar.DiskDataCache |
88 | | - run: dotnet build Stellar.DiskDataCache/Stellar.DiskDataCache.csproj |
89 | | - - name: Create the package |
90 | | - run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} Stellar.DiskDataCache/Stellar.DiskDataCache.csproj |
91 | | - - name: Publish the package to NuGet |
92 | | - run: dotnet nuget push Stellar.DiskDataCache/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json |
93 | | - env: |
94 | | - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |
| 42 | + - uses: actions/checkout@v3 |
| 43 | + - uses: actions/setup-dotnet@v3 |
| 44 | + with: |
| 45 | + dotnet-version: '9.x' |
| 46 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 47 | + with: |
| 48 | + xcode-version: latest-stable |
| 49 | + - name: Install MAUI Workloads |
| 50 | + run: dotnet workload install maui --ignore-failed-sources |
| 51 | + - name: Semver Parse |
| 52 | + id: version |
| 53 | + uses: release-kit/semver@v1.0.10 |
| 54 | + - name: Build ${{ matrix.name }} |
| 55 | + run: dotnet build ${{ matrix.project }} |
| 56 | + - name: Pack ${{ matrix.name }} |
| 57 | + run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} ${{ matrix.project }} |
| 58 | + - name: Publish ${{ matrix.name }} |
| 59 | + run: dotnet nuget push ${{ matrix.output }}/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json |
0 commit comments