Skip to content

Port microsoft/microsoft-ui-xaml#4932 (#662) #485

Port microsoft/microsoft-ui-xaml#4932 (#662)

Port microsoft/microsoft-ui-xaml#4932 (#662) #485

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup Windows SDK
uses: GuillaumeFalourd/setup-windows10-sdk-action@v1.5
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
if: success() && github.ref_name == 'master' && github.event.head_commit.message == 'Bump version'
run: |
dotnet pack ModernWpf.Controls\ModernWpf.Controls.csproj -c Release --no-build
dotnet nuget push "artifacts\*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json