Skip to content

Commit 996e548

Browse files
committed
Lets try
1 parent 48abf90 commit 996e548

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
# if it is a pull request build set the build identity to branchname.runnumber
3636
if ("${{ github.event_name }}" -eq "pull_request" -and "${{ github.head_ref }}" -ne "") {
3737
$branchName = "${{ github.head_ref }}" -replace '[/\\]', '-' -replace '[^a-zA-Z0-9\-]', ''
38-
$buildIdentity = "$branchName.${{ github.run_number }}"
39-
40-
$env:BUILD_IDENTITY = $buildIdentity
38+
$env:MINVERDEFAULTPRERELEASEIDENTIFIERS = "octopus-$branchName.${{ github.run_number }}"
39+
Write-Host "PR build - pre-release identifiers: octopus-$branchName.${{ github.run_number }}"
4140
}
4241
4342
# if it is a scheduled build set the build identity to nightly
4443
if ("${{ github.event_name }}" -eq "schedule" -or "${{ inputs.nightly }}" -eq "true") {
45-
$env:BUILD_IDENTITY = "nightly.${{ github.run_number }}"
44+
$env:MINVERDEFAULTPRERELEASEIDENTIFIERS = "nightly.${{ github.run_number }}"
45+
Write-Host "Nightly build - pre-release identifiers: nightly.${{ github.run_number }}"
4646
}
4747
4848
dotnet build LibGit2Sharp.sln --configuration Release

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@
2121
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2222
<PackageId>Octopus.LibGit2Sharp</PackageId>
2323
<PackageOutputPath>$(ArtifactsPath)\package</PackageOutputPath>
24-
<MinVerDefaultPreReleaseIdentifiers>octopus.0</MinVerDefaultPreReleaseIdentifiers>
24+
<MinVerDefaultPreReleaseIdentifiers>octopus.0</MinVerDefaultPreReleaseIdentifiers>
2525
<MinVerBuildMetadata Condition="'$(libgit2_hash)' != ''">libgit2-$(libgit2_hash.Substring(0,7))</MinVerBuildMetadata>
2626
</PropertyGroup>
27-
27+
2828
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
2929
<IsTrimmable>true</IsTrimmable>
3030
</PropertyGroup>
31-
32-
<PropertyGroup Condition="'$(BUILD_IDENTITY)' != ''">
33-
<MinVerDefaultPreReleaseIdentifiers>octopus-$(BUILD_IDENTITY)</MinVerDefaultPreReleaseIdentifiers>
34-
</PropertyGroup>
3531

3632
<ItemGroup>
3733
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="[2.0.323]" PrivateAssets="none" />

0 commit comments

Comments
 (0)