3131 needs : [version]
3232 env :
3333 OTEL_ENDPOINT : ${{ secrets.OTEL_ENDPOINT }}
34+ OTEL_HEADER_AUTH : ${{ secrets.OTEL_HEADER_AUTH }}
3435 VITE_MUI_LICENSE : ${{ secrets.VITE_MUI_LICENSE }}
3536 steps :
3637 - name : Code checkout
5960 - name : Build Linux binaries
6061 run : |
6162 node scripts/replace.mjs cmd/shared/constants.go "<version>=>${{ needs.version.outputs.VERSION }}"
62- node scripts/replace.mjs cmd/shared/constants.go "<otel>=>$OTEL_ENDPOINT"
63+ node scripts/replace.mjs cmd/shared/constants.go "<otel_endpoint>=>$OTEL_ENDPOINT"
64+ node scripts/replace.mjs cmd/shared/constants.go "<otel_auth>=>$OTEL_HEADER_AUTH"
6365 node scripts/replace.mjs cmd/shared/constants.go "EnvDevelopment=>EnvProduction"
6466 task package oses=linux archs=amd64
6567
7476 needs : [version]
7577 env :
7678 OTEL_ENDPOINT : ${{ secrets.OTEL_ENDPOINT }}
79+ OTEL_HEADER_AUTH : ${{ secrets.OTEL_HEADER_AUTH }}
7780 VITE_MUI_LICENSE : ${{ secrets.VITE_MUI_LICENSE }}
7881 steps :
7982 - name : Code checkout
@@ -102,7 +105,8 @@ jobs:
102105 - name : Build Linux binaries
103106 run : |
104107 node scripts/replace.mjs cmd/shared/constants.go "<version>=>${{ needs.version.outputs.VERSION }}"
105- node scripts/replace.mjs cmd/shared/constants.go "<otel>=>$OTEL_ENDPOINT"
108+ node scripts/replace.mjs cmd/shared/constants.go "<otel_endpoint>=>$OTEL_ENDPOINT"
109+ node scripts/replace.mjs cmd/shared/constants.go "<otel_auth>=>$OTEL_HEADER_AUTH"
106110 node scripts/replace.mjs cmd/shared/constants.go "EnvDevelopment=>EnvProduction"
107111 task package oses=linux archs=arm64
108112
@@ -117,6 +121,7 @@ jobs:
117121 needs : [version]
118122 env :
119123 OTEL_ENDPOINT : ${{ secrets.OTEL_ENDPOINT }}
124+ OTEL_HEADER_AUTH : ${{ secrets.OTEL_HEADER_AUTH }}
120125 VITE_MUI_LICENSE : ${{ secrets.VITE_MUI_LICENSE }}
121126 steps :
122127 - name : Code checkout
@@ -140,7 +145,8 @@ jobs:
140145 - name : Build MacOS binaries
141146 run : |
142147 node scripts/replace.mjs cmd/shared/constants.go "<version>=>${{ needs.version.outputs.VERSION }}"
143- node scripts/replace.mjs cmd/shared/constants.go "<otel>=>$OTEL_ENDPOINT"
148+ node scripts/replace.mjs cmd/shared/constants.go "<otel_endpoint>=>$OTEL_ENDPOINT"
149+ node scripts/replace.mjs cmd/shared/constants.go "<otel_auth>=>$OTEL_HEADER_AUTH"
144150 node scripts/replace.mjs cmd/shared/constants.go "EnvDevelopment=>EnvProduction"
145151 task package oses=darwin archs='amd64 arm64'
146152
@@ -155,6 +161,7 @@ jobs:
155161 needs : [version]
156162 env :
157163 OTEL_ENDPOINT : ${{ secrets.OTEL_ENDPOINT }}
164+ OTEL_HEADER_AUTH : ${{ secrets.OTEL_HEADER_AUTH }}
158165 VITE_MUI_LICENSE : ${{ secrets.VITE_MUI_LICENSE }}
159166 steps :
160167 - name : Code checkout
@@ -181,7 +188,8 @@ jobs:
181188 - name : Build Windows binaries
182189 run : |
183190 node scripts/replace.mjs cmd/shared/constants.go "<version>=>${{ needs.version.outputs.VERSION }}"
184- node scripts/replace.mjs cmd/shared/constants.go "<otel>=>$OTEL_ENDPOINT"
191+ node scripts/replace.mjs cmd/shared/constants.go "<otel_endpoint>=>$OTEL_ENDPOINT"
192+ node scripts/replace.mjs cmd/shared/constants.go "<otel_auth>=>$OTEL_HEADER_AUTH"
185193 node scripts/replace.mjs cmd/shared/constants.go "EnvDevelopment=>EnvProduction"
186194 task package oses=windows archs=amd64
187195
@@ -196,6 +204,7 @@ jobs:
196204 needs : [version]
197205 env :
198206 OTEL_ENDPOINT : ${{ secrets.OTEL_ENDPOINT }}
207+ OTEL_HEADER_AUTH : ${{ secrets.OTEL_HEADER_AUTH }}
199208 VITE_MUI_LICENSE : ${{ secrets.VITE_MUI_LICENSE }}
200209 steps :
201210 - name : Code checkout
@@ -236,7 +245,8 @@ jobs:
236245 CXX : aarch64-w64-mingw32-g++
237246 run : |
238247 node scripts/replace.mjs cmd/shared/constants.go "<version>=>${{ needs.version.outputs.VERSION }}"
239- node scripts/replace.mjs cmd/shared/constants.go "<otel>=>$OTEL_ENDPOINT"
248+ node scripts/replace.mjs cmd/shared/constants.go "<otel_endpoint>=>$OTEL_ENDPOINT"
249+ node scripts/replace.mjs cmd/shared/constants.go "<otel_auth>=>$OTEL_HEADER_AUTH"
240250 node scripts/replace.mjs cmd/shared/constants.go "EnvDevelopment=>EnvProduction"
241251 task package oses=windows archs=arm64
242252
0 commit comments