-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 3.02 KB
/
blauhaus.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
name: Blauhaus Packages
on:
push:
branches:
- release/*
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
include-prerelease: true
- name: Install MAUI Workloads
run: |
dotnet workload install maui --ignore-failed-sources
- name: Set Version
run: |
npm install @actions/core --save
node ./scripts/getversion.js
- name: Build NuGet Package
run: |
dotnet build ./src/Blauhaus.MVVM.sln --configuration Release
dotnet pack ./src/Blauhaus.MVVM.Abstractions/Blauhaus.MVVM.Abstractions.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.MVVM.TestHelpers/Blauhaus.MVVM.TestHelpers.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.MVVM.Xamarin/Blauhaus.MVVM.Xamarin.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.MVVM/Blauhaus.MVVM.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.MVVM.MonoGame/Blauhaus.MVVM.MonoGame.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.MVVM.Maui/Blauhaus.MVVM.Maui.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
dotnet pack ./src/Blauhaus.MVVM.Blazor/Blauhaus.MVVM.Blazor.csproj -p:PackageVersion=${VERSION_NAME} --no-build --output ./ --configuration Release
- name: Deploy NuGet Package
run: |
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.Abstractions.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.TestHelpers.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.Xamarin.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.MonoGame.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.Maui.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push /Users/runner/work/Blauhaus.MVVM/Blauhaus.MVVM/Blauhaus.MVVM.Blazor.${VERSION_NAME}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json