Skip to content

no message

no message #309

Workflow file for this run

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/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.${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