-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.03 KB
/
release.yml
File metadata and controls
42 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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