Skip to content

Port microsoft/microsoft-ui-xaml#4726 (#640) #434

Port microsoft/microsoft-ui-xaml#4726 (#640)

Port microsoft/microsoft-ui-xaml#4726 (#640) #434

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/[email protected]
- 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