-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Windows Installer in Pipeline (#10)
* Build scripts from any directory * Use x-plat directory separator * Add missing directory separator * Avoid using double dots for parent directory * Build only on Windows * Remove trailing separator from root path * Use correct coverage output path * Revert "Build only on Windows" This reverts commit f5e2e80. * Simplify path resolution * Build Windows installer * Build MSI on builds of main or a pull request * Set tag * Fix call to GitVersion * Output full GitVersion details * Code quality: don't use Debug-Host * Revert "Output full GitVersion details" This reverts commit 19315b4. * Build on pushes to branches * Always build MSI & don't set tag for pull requests * Build on pushes to main or pull request * Always tag only on pushes to main * Always build MSI * Improve script formatting * Build on pushes to all branches * Fix typo +semver: feature * Show when workflow is initiated due to a tag push * Tighten up tag condition
- Loading branch information
Showing
5 changed files
with
41 additions
and
17 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
& Build/build-and-test.ps1 | ||
& Build/build-windows-installer.ps1 | ||
& $PSScriptRoot/build-and-test.ps1 | ||
& $PSScriptRoot/build-windows-installer.ps1 |
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,9 @@ | ||
dotnet tool update --global GitVersion.Tool | ||
|
||
$semVer = (dotnet-gitversion | ConvertFrom-Json).SemVer | ||
$tag = "v$semVer" | ||
|
||
git tag $tag -f | ||
git push --tags | ||
|
||
Write-Output "Tagged with $tag" |