-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Package toolbox and publish release | ||
|
||
# Run workflow when a tag is created | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
ci: | ||
uses: ./.github/workflows/main.yml | ||
|
||
package: | ||
needs: ci | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up MATLAB | ||
uses: matlab-actions/setup-matlab@v1 | ||
|
||
- name: Run commands | ||
uses: matlab-actions/run-command@v1 | ||
with: | ||
command: openProject(pwd); releaseTask('toolboxVersion',"${{ github.ref_name }}",'authorName',"${{ github.actor }}"); | ||
|
||
# Create new release | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: releases/Message-De-Serializer-for-ROS-installer.mltbx | ||
fail_on_unmatched_files: true | ||
generate_release_notes: true |