diff --git a/.github/workflows/buildZipMLTBX.yml b/.github/workflows/buildZipMLTBX.yml index 5496a692a..fbcdf35c3 100644 --- a/.github/workflows/buildZipMLTBX.yml +++ b/.github/workflows/buildZipMLTBX.yml @@ -8,39 +8,39 @@ on: tags: - '*' -# A workflow run consists of a jobs that runs sequentially +# A workflow run consists of jobs that run sequentially jobs: - # This workflow contains a one job that builds the zip and MLTBX files. + # This workflow contains one job that builds the zip and MLTBX files. releaseUserFiles: - # The type of runner that the job will run on, we use Ubuntu + # The type of runner that the job will run on, we use latest Ubuntu runs-on: ubuntu-latest steps: - # Runs a single command using the runners shell + # Runs commands using the runners shell - name: checkout the repo uses: actions/checkout@v3 - + - name: Zip the toolbox run: zip -r '${{ github.ref_name }}.zip' Psychtoolbox - + - name: Set up MATLAB uses: matlab-actions/setup-matlab@v1 - + - name: Create MLTBX uses: matlab-actions/run-command@v1 continue-on-error: false if: always() with: - command: createPsychtoolboxMLTBX("Psychtoolbox.prj", "${{ github.ref_name }}") - + command: addpath([pwd filesep 'managementtools']); createPsychtoolboxMLTBX("managementtools/Psychtoolbox.prj", "${{ github.ref_name }}") + # # This is for diagnostics # - name: list directories # run: ls -l - - #Create the release + + # Create the release - name: Create release uses: ncipollo/release-action@v1 with: - draft: true + draft: true artifacts: "./${{ github.ref_name }}.zip, ./${{ github.ref_name }}.mltbx" generateReleaseNotes: true - tag: ${{ github.ref_name }} \ No newline at end of file + tag: ${{ github.ref_name }} diff --git a/Psychtoolbox.prj b/managementtools/Psychtoolbox.prj similarity index 100% rename from Psychtoolbox.prj rename to managementtools/Psychtoolbox.prj diff --git a/createPsychtoolboxMLTBX.m b/managementtools/createPsychtoolboxMLTBX.m similarity index 100% rename from createPsychtoolboxMLTBX.m rename to managementtools/createPsychtoolboxMLTBX.m