Files
Net.Maui.Extensions/.github/workflows/cd.yaml
T
dependabot[bot] 328c266547 Bump microsoft/setup-msbuild from 1.0.1 to 2.0.0
Bumps [microsoft/setup-msbuild](https://github.com/microsoft/setup-msbuild) from 1.0.1 to 2.0.0.
- [Release notes](https://github.com/microsoft/setup-msbuild/releases)
- [Changelog](https://github.com/microsoft/setup-msbuild/blob/main/building-release.md)
- [Commits](https://github.com/microsoft/setup-msbuild/compare/v1.0.1...v2.0.0)

---
updated-dependencies:
- dependency-name: microsoft/setup-msbuild
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 10:59:46 +00:00

53 lines
1.4 KiB
YAML

name: Net.Maui.Extensions CD Pipeline
on:
push:
branches:
- master
paths:
- Net.Maui.Extensions/**
- ".github/workflows/cd.yaml"
jobs:
build:
environment: Default
strategy:
matrix:
targetplatform: [x64]
runs-on: windows-latest
env:
Configuration: Release
Solution_Path: Net.Maui.Extensions.sln
Source_Project_Path: Net.Maui.Extensions\Net.Maui.Extensions.csproj
Actions_Allow_Unsecure_Commands: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2.0.0
- name: Restore project
run: msbuild $env:Solution_Path /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier=$env:RuntimeIdentifier
env:
RuntimeIdentifier: win-${{ matrix.targetplatform }}
- name: Build Net.Maui.Extensions project
run: dotnet build $env:Source_Project_Path -c $env:Configuration
- name: Package Net.Maui.Extensions
run: dotnet pack -c Release -o . $env:Source_Project_Path
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate