Skip to content

Commit 78323f0

Browse files
committed
Release pipelines: update images
Replace trigger by workflow_dispatch
1 parent 925be15 commit 78323f0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- tmx_** # Releases
4+
workflow_dispatch:
75

86
env:
97
# Latest (2.9.10): https://gitlab.gnome.org/GNOME/libxml2/-/issues/154
@@ -20,12 +18,12 @@ env:
2018
jobs:
2119
linux64:
2220
name: Linux 64 Build
23-
runs-on: ubuntu-16.04
21+
runs-on: ubuntu-20.04
2422
steps:
2523
# context expressions lack the most basic string manipulation functions...
2624
- name: Create distribution folder
2725
run: |
28-
ARTIFACT_NAME=${GITHUB_REF:10}-linux
26+
ARTIFACT_NAME=$(git describe --tags --abbrev=0)-linux
2927
DIST_PATH=${GITHUB_WORKSPACE}/${ARTIFACT_NAME}
3028
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
3129
echo "DIST_PATH=${DIST_PATH}" >> $GITHUB_ENV
@@ -88,7 +86,7 @@ jobs:
8886
steps:
8987
- name: Create distribution folder
9088
run: |
91-
ARTIFACT_NAME=${GITHUB_REF:10}-html5
89+
ARTIFACT_NAME=$(git describe --tags --abbrev=0)-html5
9290
DIST_PATH=${GITHUB_WORKSPACE}/${ARTIFACT_NAME}
9391
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
9492
echo "DIST_PATH=${DIST_PATH}" >> $GITHUB_ENV
@@ -150,11 +148,11 @@ jobs:
150148

151149
windows:
152150
name: Windows Build
153-
runs-on: windows-2016
151+
runs-on: windows-2019
154152
steps:
155153
- name: Create distribution folder
156154
run: |
157-
$ARTIFACT_NAME=$($Env:GITHUB_REF).substring(10) + "-win"
155+
$ARTIFACT_NAME=(git describe --tags --abbrev=0) -join "-win"
158156
echo "ARTIFACT_NAME=$ARTIFACT_NAME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
159157
$DIST_PATH="$($Env:GITHUB_WORKSPACE)\$ARTIFACT_NAME"
160158
echo "DIST_PATH=$DIST_PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

0 commit comments

Comments
 (0)