-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add help/feedback menu * add version info * add versioning script * fix build for codecov and SonarQube
- Loading branch information
Showing
9 changed files
with
230 additions
and
103 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# check whether build on tag | ||
$version = "DEVEL" | ||
if ($env:GITHUB_REF -match "/tags/") { | ||
# use tag as version name | ||
$version = $env:GITHUB_REF -replace "(\w+/)*","" | ||
} else { | ||
# use git sha as version name | ||
$version = ($env:GITHUB_SHA).Substring(0, 8) | ||
} | ||
|
||
Write-Host version = $version | ||
|
||
$file = gi .\src\SimpleAccounting\SimpleAccounting.csproj | ||
$xml = [xml](gc $file) | ||
$xml.Project.PropertyGroup.InformationalVersion = $version | ||
|
||
$utf8 = New-Object System.Text.UTF8Encoding($true) | ||
$sw = New-Object System.IO.StreamWriter($file.Fullname, $false, $utf8) | ||
$xml.Save( $sw ) | ||
$sw.Close() |
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
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
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
Oops, something went wrong.