matlab requires the ToolboxMatlabPath to contain at least one file, a… #5
Workflow file for this run
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
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
jobs: | |
release: | |
name: create release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: get version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} | |
- name: set up MATLAB | |
uses: matlab-actions/setup-matlab@v1 | |
- name: package toolbox | |
uses: matlab-actions/run-command@v1 | |
with: | |
command: package("${{ steps.get_version.outputs.VERSION }}", "ihn-psych.mltbx") | |
- name: create GitHub release | |
run: | | |
gh release create v${{ steps.get_version.outputs.VERSION }} ihn-psych.mltbx | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |