From 9a0d5b99bf4e1d44c64489ab4e1001b723e31bf2 Mon Sep 17 00:00:00 2001 From: Seth Bashford Date: Thu, 22 Aug 2024 11:34:43 -0500 Subject: [PATCH] add source zip to release --- .github/workflows/create-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }}