Skip to content

add source zip to release #11

add source zip to release

add source zip to release #11

Workflow file for this run

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
name: create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up MATLAB
uses: matlab-actions/setup-matlab@v2
- name: package toolbox
uses: matlab-actions/run-command@v2
with:
command: package("${{ github.ref_name }}", "ihn-psych.mltbx")
- name: create GitHub release
run: |
echo "function v = version, v = '${{ github.ref_name }}'; end" >toolbox/+ihn/version.m
(cd toolbox/ && zip -r ../"$ZIPFILE" +ihn/)
gh release create "${{ github.ref_name }}" *.mltbx "$ZIPFILE"
env:
ZIPFILE: ihn-psych-${{ github.ref_name }}.zip
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}