Merge branch 'master' of https://github.com/bpancras/Psychtoolbox-3 i… #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a GitHub Action workflow to build toolbox MLTBX and release it on GitHub | |
name: Tag triggered release | |
# # Start the workflow when a tag is created. | |
on: | |
push: | |
tags: | |
- '*' | |
# A workflow run consists of a jobs that runs sequentially | |
jobs: | |
# This workflow contains a one job that builds the zip and MLTBX files. | |
releaseUserFiles: | |
# The type of runner that the job will run on, we use Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
# Runs a single command 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 }}") | |
# # This is for diagnostics | |
# - name: list directories | |
# run: ls -l | |
#Create the release | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
draft: true | |
artifacts: "./${{ github.ref_name }}.zip, ./${{ github.ref_name }}.mltbx" | |
generateReleaseNotes: true | |
tag: ${{ github.ref_name }} |