Skip to content

Commit 61a0d5a

Browse files
committed
fix wrong Agent version
1 parent d9936ce commit 61a0d5a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/release.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
- operating-system: macos-10.15
2020

2121
runs-on: ${{ matrix.operating-system }}
22-
env:
23-
TAG_VERSION: ${GITHUB_REF##*/} # will be available to all steps and will be used by task build
2422

2523
steps:
2624
- name: Disable EOL conversions
@@ -61,12 +59,12 @@ jobs:
6159
run: task test-unit
6260

6361
- name: Build the Agent for linux
64-
run: task build
62+
run: task build TAG_VERSION=${GITHUB_REF##*/}
6563
if: matrix.operating-system == 'ubuntu-18.04'
6664

6765
# build the agent without GUI support (no tray icon)
6866
- name: Build the Agent-cli
69-
run: task build-cli
67+
run: task build-cli TAG_VERSION=${GITHUB_REF##*/}
7068
if: matrix.operating-system == 'ubuntu-18.04'
7169

7270
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
@@ -80,19 +78,19 @@ jobs:
8078
env:
8179
GOARCH: 386 # 32bit architecture (for support)
8280
GO386: 387 # support old instruction sets without MMX (used in the Pentium 4) (will be deprecated in GO > 1.15 https://golang.org/doc/go1.15)
83-
run: task build-win
81+
run: task build-win TAG_VERSION=${GITHUB_REF##*/}
8482
if: matrix.operating-system == 'windows-2019' && matrix.arch == '-386'
8583

8684
- name: Build the Agent for win64
87-
run: task build-win # GOARCH=amd64 by default on the runners
85+
run: task build-win TAG_VERSION=${GITHUB_REF##*/} # GOARCH=amd64 by default on the runners
8886
if: matrix.operating-system == 'windows-2019' && matrix.arch == '-amd64'
8987

9088
- name: Build the Agent for macos
9189
env:
9290
MACOSX_DEPLOYMENT_TARGET: 10.11 # minimum supported version for mac
9391
CGO_CFLAGS: -mmacosx-version-min=10.11
9492
CGO_LDFLAGS: -mmacosx-version-min=10.11
95-
run: task build
93+
run: task build TAG_VERSION=${GITHUB_REF##*/}
9694
if: matrix.operating-system == 'macos-10.15'
9795

9896
# config.ini is required by the executable when it's run

0 commit comments

Comments
 (0)