Skip to content

Commit

Permalink
Fix CLI versioning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Jan 11, 2024
1 parent b530039 commit a4ba355
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Build version'
description: 'Build version (x.xx)'
required: true

jobs:
Expand All @@ -15,13 +15,13 @@ jobs:
- uses: actions/checkout@v4

- name: Package CLI 6
run: dotnet pack src\Core\efcpt.6\efcpt.6.csproj -p:PackageVersion=6.1.${{ github.event.inputs.version }} -p:InformationalVersion=6.1.${{ github.event.inputs.version }}
run: dotnet pack src\Core\efcpt.6\efcpt.6.csproj -p:PackageVersion=6.${{ github.event.inputs.version }} -p:InformationalVersion=6.${{ github.event.inputs.version }}

- name: Package CLI 7
run: dotnet pack src\Core\efcpt.7\efcpt.7.csproj -p:PackageVersion=7.1.${{ github.event.inputs.version }} -p:InformationalVersion=7.1.${{ github.event.inputs.version }}
run: dotnet pack src\Core\efcpt.7\efcpt.7.csproj -p:PackageVersion=7.${{ github.event.inputs.version }} -p:InformationalVersion=7.${{ github.event.inputs.version }}

- name: Package CLI 8
run: dotnet pack src\Core\efcpt.8\efcpt.8.csproj -p:PackageVersion=8.1.${{ github.event.inputs.version }} -p:InformationalVersion=8.1.${{ github.event.inputs.version }}
run: dotnet pack src\Core\efcpt.8\efcpt.8.csproj -p:PackageVersion=8.${{ github.event.inputs.version }} -p:InformationalVersion=8.${{ github.event.inputs.version }}

- name: Publish NuGet
if: startsWith(github.ref, 'refs/heads/master')
Expand Down
2 changes: 1 addition & 1 deletion src/Core/efcpt.7/Services/PackageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static async Task CheckForPackageUpdateAsync()
{
DisplayService.MarkupLine("Your are not using the latest version of the tool, please update to get the latest bug fixes, features and support", Color.Yellow);
DisplayService.MarkupLine($"Latest version is '{latestVersion}'", Color.Yellow);
DisplayService.MarkupLine($"Run 'dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version {Constants.Version}.0.*' to get the latest version.", Color.Yellow);
DisplayService.MarkupLine($"Run 'dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version {Constants.Version}.*' to get the latest version.", Color.Yellow);
}
}
#pragma warning disable CA1031
Expand Down
10 changes: 5 additions & 5 deletions src/Core/efcpt.7/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ For a quick intro you can watch [this 2 minute demo video](https://www.youtube.c
EF Core 8:

```bash
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 8.0.*
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 8.*
```

EF Core 7:

```bash
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 7.0.*
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 7.*
```

EF Core 6:

```bash
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 6.0.*
dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 6.*
```

### Running the tool
Expand Down Expand Up @@ -112,13 +112,13 @@ The tool can generate a [Mermaid ER diagram](https://mermaid.js.org/syntax/entit
### Updating the tool

```bash
dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version 8.0.*
dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version 8.*
```

[Release notes](https://github.com/ErikEJ/EFCorePowerTools/wiki/Release-notes) - notice the `+CLI` label.

### Getting the latest daily build

```bash
dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version 8.0.*-*
dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version 8.*-*
```
2 changes: 2 additions & 0 deletions src/EFCorePowerTools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{ACD63354-5031-4116-AEE9-B38E9F687E2E}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
..\.github\workflows\cli-release.yml = ..\.github\workflows\cli-release.yml
..\.github\workflows\cli-tool.yml = ..\.github\workflows\cli-tool.yml
Directory.Build.Props = Directory.Build.Props
NuGet.Config = NuGet.Config
..\.github\workflows\vsix.yml = ..\.github\workflows\vsix.yml
Expand Down

0 comments on commit a4ba355

Please sign in to comment.