Skip to content

Commit

Permalink
Add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorcum committed Aug 16, 2023
1 parent 229c1c0 commit 2085627
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 2085627

Please sign in to comment.