Skip to content

Commit 6409673

Browse files
committed
Publish .mltbx file
1 parent c303c29 commit 6409673

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/publish_mltbx.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: "Publish"
1+
name: "Publish mltbx"
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- package
4+
release:
5+
types: published
76
jobs:
87
build-ubuntu:
98
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11
@@ -124,8 +123,12 @@ jobs:
124123
uses: matlab-actions/run-command@v1
125124
with:
126125
command: packageMatlabInterface
127-
- name: Upload artifacts
128-
uses: actions/upload-artifact@v2
126+
- name: Compress Asset
127+
run: zip otel-matlab-${{ github.event.release.tag_name }}.mltbx.zip otel-matlab.mltbx
128+
- name: Upload Release Asset
129+
uses: actions/upload-release-asset@v1
129130
with:
130-
name: otel-matlab.mltbx
131-
path: otel-matlab.mltbx
131+
upload_url: https://uploads.github.com/repos/mathworks/OpenTelemetry-Matlab/releases/${{ github.event.release.id }}/assets{?name,label}`
132+
asset_path: ./otel-matlab-${{ github.event.release.tag_name }}.mltbx.zip
133+
asset_name: otel-matlab-${{ github.event.release.tag_name }}.mltbx.zip
134+
asset_content_type: application/zip

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Requires MATLAB release R2022b or newer
2020
## Installation
2121
Installation instructions
2222

23+
### Installing With Toolbox Package
24+
1. Under "Assets" of a release, download the toolbox package .mltbx file.
25+
2. Start MATLAB.
26+
3. In the Current Folder browser, navigate to the .mltbx file.
27+
4. Right click on the .mltbx file and select "Install".
28+
29+
### Building From Source
2330
Before proceeding, ensure that the below products are installed:
2431
* [MATLAB](https://www.mathworks.com/products/matlab.html)
2532

0 commit comments

Comments
 (0)