Skip to content

Commit

Permalink
GitHub action for zip+MLTBX: Move files to managementtools subfolder.
Browse files Browse the repository at this point in the history
Move M-file and project file to managementtools subfolder, to
declutter the root folder.

Some white-space and indentation cleanup and comment improvements
in the .github/workflows/buildZipMLTBX.yml file.

-> No real functional change intended, just cosmetics.
  • Loading branch information
kleinerm committed Dec 16, 2023
1 parent 4603982 commit 7692abe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/buildZipMLTBX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
tag: ${{ github.ref_name }}
File renamed without changes.
File renamed without changes.

0 comments on commit 7692abe

Please sign in to comment.