mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-15 14:59:30 +00:00
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
name: WpfExtended CD Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
|
|
build:
|
|
environment: Default
|
|
strategy:
|
|
matrix:
|
|
targetplatform: [x64]
|
|
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
Configuration: Release
|
|
Solution_Path: WpfExtended.slnx
|
|
Actions_Allow_Unsecure_Commands: true
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install .NET Core
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: '9.x'
|
|
|
|
- name: Setup MSBuild.exe
|
|
uses: microsoft/setup-msbuild@v1.0.1
|
|
|
|
- name: Restore Projects
|
|
run: msbuild $env:Solution_Path /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier=$env:RuntimeIdentifier
|
|
env:
|
|
RuntimeIdentifier: win-${{ matrix.targetplatform }}
|
|
|
|
- name: Build WpfExtended project
|
|
run: dotnet build WpfExtended -c $env:Configuration -p:SolutionDir=$env:GITHUB_WORKSPACE
|
|
|
|
- name: Package WpfExtended
|
|
run: dotnet pack -c Release -o . WpfExtended\WpfExtended.csproj
|
|
|
|
- name: Build WpfExtended.SourceGeneration project
|
|
run: dotnet build WpfExtended.SourceGeneration -c $env:Configuration
|
|
|
|
- name: Package WpfExtended.SourceGeneration
|
|
run: dotnet pack -c Release -o . WpfExtended.SourceGeneration\WpfExtended.SourceGeneration.csproj
|
|
|
|
- name: Build WpfExtended.Blazor project
|
|
run: dotnet build WpfExtended.Blazor -c $env:Configuration
|
|
|
|
- name: Package WpfExtended.Blazor
|
|
run: dotnet pack -c Release -o . WpfExtended.Blazor\WpfExtended.Blazor.csproj
|
|
|
|
- name: Publish
|
|
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|