mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed the versioning
This commit is contained in:
parent
6a39637408
commit
9946c80f3f
3 changed files with 14 additions and 4 deletions
|
@ -34,6 +34,17 @@ steps:
|
||||||
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)"
|
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)"
|
||||||
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response"
|
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response"
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
custom: 'tool install'
|
||||||
|
arguments: '-g dotnet-setversion'
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
script: 'setversion -r $(gitTag)'
|
||||||
|
|
||||||
- task: Yarn@3
|
- task: Yarn@3
|
||||||
displayName: 'Install UI Dependancies'
|
displayName: 'Install UI Dependancies'
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -6,10 +6,8 @@ namespace Ombi.Helpers
|
||||||
{
|
{
|
||||||
public static string GetRuntimeVersion()
|
public static string GetRuntimeVersion()
|
||||||
{
|
{
|
||||||
var version = Assembly.GetEntryAssembly()
|
ApplicationEnvironment app = PlatformServices.Default.Application;
|
||||||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
|
return app.ApplicationVersion;
|
||||||
.InformationalVersion;
|
|
||||||
return version.Equals("1.0.0") ? "4.0.0-develop" : version;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,7 @@
|
||||||
<PackageReference Include="Nito.AsyncEx" Version="5.0.0-pre-05" />
|
<PackageReference Include="Nito.AsyncEx" Version="5.0.0-pre-05" />
|
||||||
<PackageReference Include="Quartz" Version="3.0.7" />
|
<PackageReference Include="Quartz" Version="3.0.7" />
|
||||||
<PackageReference Include="System.Security.Claims" Version="4.3.0" />
|
<PackageReference Include="System.Security.Claims" Version="4.3.0" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue