Skip to content

Commit

Permalink
refactor release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpo committed Jul 22, 2024
1 parent 1aa60f8 commit 62ea4d0
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/publish_mltbx.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: "Publish mltbx"
on:
on:
workflow_dispatch:
release:
types: published
push:
tags:
- '*'
#on:
#workflow_dispatch:
#release:
#types: published
jobs:
build-ubuntu:
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11
Expand Down Expand Up @@ -137,12 +142,21 @@ jobs:
uses: matlab-actions/run-command@v1
with:
command: packageMatlabInterface
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./otel-matlab.mltbx
asset_name: otel-matlab.mltbx
asset_content_type: application/octet-stream
#- name: Upload Release Asset
#uses: actions/upload-release-asset@v1
#env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#with:
#upload_url: ${{ github.event.release.upload_url }}
#asset_path: ./otel-matlab.mltbx
#asset_name: otel-matlab.mltbx
#asset_content_type: application/octet-stream
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: ./otel-matlab.mltbx
fail_on_unmatched_files: true
generate_release_notes: false
prerelease: false
make_latest: false
draft: true

0 comments on commit 62ea4d0

Please sign in to comment.