mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
nugetUpload: fix version creation
Somehow for the previous commit hash, which had only numbers in its
short version (0122072), nuget failed with:
Run $date = get-date -format "yyyyMMdd-HHmm"
Attempting to build package from 'TgSharp.Core.csproj'.
Error NU5010: Version string specified for package reference '0.1.0-date.20200414-0908.git.0122072' is invalid.
File does not exist (TgSharp.0.1.0-date.20200414-0908.git.0122072.nupkg).
Now we remove the "." after "date" and "git" and use double-dash
to separate initial version from the sub-version.
This commit is contained in:
parent
012207251b
commit
b55084d50d
2
.github/workflows/nugetUpload.yml
vendored
2
.github/workflows/nugetUpload.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
}
|
}
|
||||||
Else {
|
Else {
|
||||||
$baseVersion = "0.1.0"
|
$baseVersion = "0.1.0"
|
||||||
$version = "$baseVersion-date.$date.git.$hash"
|
$version = "$baseVersion--date$date.git$hash"
|
||||||
}
|
}
|
||||||
|
|
||||||
./Nuget.exe pack src/TgSharp.Core/TgSharp.Core.csproj -Version $version -Build -Properties Configuration=Release
|
./Nuget.exe pack src/TgSharp.Core/TgSharp.Core.csproj -Version $version -Build -Properties Configuration=Release
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue