@@ -202,6 +202,8 @@ jobs:
202202 - nogrpc-macos
203203 env :
204204 OPENTELEMETRY_MATLAB_INSTALL : " ${{ github.workspace }}/otel_matlab_install"
205+ WITHGRPC_FOLDER : " ${{ github.workspace }}/withgrpc"
206+ NOGRPC_FOLDER : " ${{ github.workspace }}/nogrpc"
205207 steps :
206208 - name : Checkout OpenTelemetry-Matlab
207209 uses : actions/checkout@v3
@@ -213,8 +215,8 @@ jobs:
213215 path : artifacts-downloaded
214216 - name : Decompress Artifacts
215217 run : |
216- mkdir withgrpc
217- cd withgrpc
218+ mkdir ${{ env.WITHGRPC_FOLDER }}
219+ cd ${{ env.WITHGRPC_FOLDER }}
218220 mv ../artifacts-downloaded/*/otel-matlab-ubuntu.tar.gz .
219221 mv ../artifacts-downloaded/*/otel-matlab-macos*.tar.gz .
220222 mv ../artifacts-downloaded/*/otel-matlab-windows.tar.gz .
@@ -224,8 +226,8 @@ jobs:
224226 tar -xzvf otel-matlab-windows.tar.gz
225227 - name : Decompress Artifacts without gRPC exporter
226228 run : |
227- mkdir nogrpc
228- cd nogrpc
229+ mkdir ${{ env.NOGRPC_FOLDER }}
230+ cd ${{ env.NOGRPC_FOLDER }}
229231 mv ../artifacts-downloaded/*/*nogrpc*.tar.gz .
230232 tar -xzvf otel-matlab-nogrpc-ubuntu.tar.gz
231233 tar -xzvf otel-matlab-nogrpc-macos-13.tar.gz
@@ -238,9 +240,9 @@ jobs:
238240 - name : Package Toolbox
239241 env :
240242 MATLABPATH : OpenTelemetry-Matlab/tools
241- WORKING_FOLDER : withgrpc
243+ WORKING_FOLDER : ${{ env.WITHGRPC_FOLDER }}
242244 OTEL_MATLAB_TOOLBOX_FOLDER : otel_matlab_install
243- OTEL_MATLAB_TOOLBOX_OUTPUT_FOLDER :
245+ OTEL_MATLAB_TOOLBOX_OUTPUT_FOLDER : ${{ env.WITHGRPC_FOLDER }}
244246 OTEL_MATLAB_TOOLBOX_VERSION : ${{ github.ref_name }}
245247 OTEL_MATLAB_TOOLBOX_NAME : otel-matlab
246248 uses : matlab-actions/run-command@v1
@@ -249,24 +251,25 @@ jobs:
249251 - name : Package Toolbox without gRPC exporter
250252 env :
251253 MATLABPATH : OpenTelemetry-Matlab/tools
252- WORKING_FOLDER : nogrpc
254+ WORKING_FOLDER : ${{ env.NOGRPC_FOLDER }}
253255 OTEL_MATLAB_TOOLBOX_FOLDER : otel_matlab_install
254- OTEL_MATLAB_TOOLBOX_OUTPUT_FOLDER :
256+ OTEL_MATLAB_TOOLBOX_OUTPUT_FOLDER : ${{ env.NOGRPC_FOLDER }}
255257 OTEL_MATLAB_TOOLBOX_VERSION : ${{ github.ref_name }}
256258 OTEL_MATLAB_TOOLBOX_NAME : otel-matlab-nogrpc
257259 uses : matlab-actions/run-command@v1
258260 with :
259261 command : packageMatlabInterface
260262 - name : Compress Toolbox without gRPC exporter
263+ working-directory : ${{ env.NOGRPC_FOLDER }}
261264 run : tar -czf otel-matlab-nogrpc.mltbx.tar.gz otel-matlab-nogrpc.mltbx
262265 - name : Create release
263266 uses : softprops/action-gh-release@v2
264267 # Upload toolbox without gRPC exporter in compressed format
265268 # This is to avoid multiple .mltbx files, which will cause issues in MATLAB File Exchange
266269 with :
267270 files : |
268- . /otel-matlab.mltbx
269- . /otel-matlab-nogrpc.mltbx.tar.gz
271+ ${{ env.WITHGRPC_FOLDER }} /otel-matlab.mltbx
272+ ${{ env.NOGRPC_FOLDER }} /otel-matlab-nogrpc.mltbx.tar.gz
270273 name : " Version ${{ github.ref_name }}"
271274 fail_on_unmatched_files : true
272275 generate_release_notes : false
0 commit comments