aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpartouf <partouf@gmail.com>2023-01-10 21:33:26 +0100
committerpartouf <partouf@gmail.com>2023-01-10 21:33:26 +0100
commit77b76b2c6000e73f3f33e9ef1ebe6e566787c61e (patch)
treead26d2c4f03031a4062bcbccc42df41bc0fa1f4b
parent39ae6b561f411d9aad410b678647d38ce25cdc46 (diff)
downloadcompiler-explorer-gh-5724.tar.gz
compiler-explorer-gh-5724.zip
change to run on taggh-5724gh-5722gh-5664-win
-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