Port microsoft/microsoft-ui-xaml#4726 (#640) #434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |