Merge pull request #616 from WildernessLabs/develop #1201
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: Meadow.CLI Packaging | |
env: | |
CLI_RELEASE_VERSION_2: 2.0.17.0 | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
build-and-optionally-publish-nuget: | |
runs-on: windows-latest | |
name: Build and Publish Meadow.CLI | |
steps: | |
- name: Checkout Meadow.CLI | |
uses: actions/checkout@v4 | |
with: | |
path: main | |
- name: Checkout Meadow.Contracts side-by-side | |
uses: actions/checkout@v4 | |
with: | |
repository: WildernessLabs/Meadow.Contracts | |
path: Meadow.Contracts | |
ref: main | |
- name: Checkout Meadow.Logging side-by-side | |
uses: actions/checkout@v4 | |
with: | |
repository: WildernessLabs/Meadow.Logging | |
path: Meadow.Logging | |
ref: main | |
- name: Checkout Meadow.Units side-by-side | |
uses: actions/checkout@v4 | |
with: | |
repository: WildernessLabs/Meadow.Units | |
path: Meadow.Units | |
ref: main | |
- name: Setup .NET 8.0.x | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
8.0.x | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
# --- v2 CLI Build Steps Only --- | |
- name: Restore CLI dependencies | |
run: dotnet restore main/Source/Meadow.CLI.sln /p:Configuration=Release | |
- name: Build CLI | |
run: dotnet build main/Source/Meadow.CLI.sln /p:Configuration=Release | |
- name: Upload NuGet Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Meadow.CLI.nuget.${{ ENV.CLI_RELEASE_VERSION_2 }} | |
path: 'main\Source\Meadow.CLI\bin\Release\*.nupkg' |