Skip to content

Commit 62ea4d0

Browse files
committed
refactor release workflow
1 parent 1aa60f8 commit 62ea4d0

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

.github/workflows/publish_mltbx.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: "Publish mltbx"
2-
on:
2+
on:
33
workflow_dispatch:
4-
release:
5-
types: published
4+
push:
5+
tags:
6+
- '*'
7+
#on:
8+
#workflow_dispatch:
9+
#release:
10+
#types: published
611
jobs:
712
build-ubuntu:
813
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11
@@ -137,12 +142,21 @@ jobs:
137142
uses: matlab-actions/run-command@v1
138143
with:
139144
command: packageMatlabInterface
140-
- name: Upload Release Asset
141-
uses: actions/upload-release-asset@v1
142-
env:
143-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144-
with:
145-
upload_url: ${{ github.event.release.upload_url }}
146-
asset_path: ./otel-matlab.mltbx
147-
asset_name: otel-matlab.mltbx
148-
asset_content_type: application/octet-stream
145+
#- name: Upload Release Asset
146+
#uses: actions/upload-release-asset@v1
147+
#env:
148+
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149+
#with:
150+
#upload_url: ${{ github.event.release.upload_url }}
151+
#asset_path: ./otel-matlab.mltbx
152+
#asset_name: otel-matlab.mltbx
153+
#asset_content_type: application/octet-stream
154+
- name: Create release
155+
uses: softprops/action-gh-release@v2
156+
with:
157+
files: ./otel-matlab.mltbx
158+
fail_on_unmatched_files: true
159+
generate_release_notes: false
160+
prerelease: false
161+
make_latest: false
162+
draft: true

0 commit comments

Comments
 (0)