Skip to content

Build for NuGet Release #9

Build for NuGet Release

Build for NuGet Release #9

Workflow file for this run

name: Build for NuGet Release
on: workflow_dispatch
env:
DOTNET_VERSION: '9.0.102'
PluginSolutionPath: 'src\Plugin.Maui.BottomSheet\Plugin.Maui.BottomSheet.sln'
Configuration: 'Release'
jobs:
Build-Plugin_Maui_BottomSheet:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Get next version
uses: reecetech/version-increment@2024.10.1
id: version
with:
scheme: semver
increment: patch
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install .NET MAUI Workload
run: dotnet workload restore ${{ env.PluginSolutionPath }}
- name: Build Plugin.Maui.BottomSheet
run: dotnet build ${{ env.PluginSolutionPath }} -c ${{ env.Configuration }} -p:Version=${{ steps.version.outputs.version }}
- name: Archive NuGet
uses: actions/upload-artifact@v4
with:
name: Plugin.Maui.BottomSheet.${{ steps.version.outputs.version }}.nupkg
path: src\Plugin.Maui.BottomSheet\Plugin.Maui.BottomSheet\bin\${{ env.Configuration }}\Plugin.Maui.BottomSheet.${{ steps.version.outputs.version }}.nupkg