aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test-win.yml5
-rw-r--r--etc/scripts/build-dist-win.ps15
2 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml
index 46a4d9e26..ac526e5bf 100644
--- a/.github/workflows/test-win.yml
+++ b/.github/workflows/test-win.yml
@@ -1,6 +1,9 @@
name: Compiler Explorer on Windows
-on: [push, pull_request]
+on:
+ push:
+ tags:
+ - gh-*
jobs:
test:
diff --git a/etc/scripts/build-dist-win.ps1 b/etc/scripts/build-dist-win.ps1
index c71d83206..a29c4fad6 100644
--- a/etc/scripts/build-dist-win.ps1
+++ b/etc/scripts/build-dist-win.ps1
@@ -1,8 +1,9 @@
Set-Location -Path $PSScriptRoot/../..
$ROOT=Get-Location
-$RELEASE_FILE_NAME = $env:GITHUB_RUN_NUMBER
-$RELEASE_NAME = "gh-$env:GITHUB_RUN_NUMBER"
+# Assumption here is that the current commit that's checked out is already tagged
+$RELEASE_FILE_NAME = (git describe --tags) -join [Environment]::NewLine -replace "gh-"
+$RELEASE_NAME = (git describe --tags) -join [Environment]::NewLine
$HASH=(git rev-parse HEAD) -join [Environment]::NewLine
# Clear the output