diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 0a795fb..6e6c242 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -16,6 +16,9 @@ jobs: command: package("${{ github.ref_name }}", "ihn-psych.mltbx") - name: create GitHub release run: | - gh release create "${{ github.ref_name }}" ihn-psych.mltbx + 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 }}