Clean up target triplet logic and make it mainly dependent on install… #4
Workflow file for this run
This file contains hidden or 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
| name: Package toolbox and publish release | |
| # Run workflow when a tag is created | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| packageToolbox: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Cache MATLAB build files | |
| uses: actions/cache@v4 | |
| with: | |
| key: matlab-buildtool | |
| path: | | |
| .buildtool | |
| - name: Set up MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| - name: Run MATLAB build | |
| uses: matlab-actions/run-build@v2 | |
| with: | |
| tasks: package('${{ github.ref_name }}') | |
| # Create new release | |
| - name: Create a new release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: '${{ github.ref_name }}' | |
| files: '*.mltbx' | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true |