Skip to content

Commit fbffde7

Browse files
committed
Modify pipeline
1 parent 57633fc commit fbffde7

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ jobs:
6969
# Checks-out your repository
7070
- uses: actions/checkout@v4
7171

72-
# Sets up R2023b
72+
# Sets latest MATLAB
7373
- name: Setup MATLAB
7474
uses: matlab-actions/setup-matlab@v2
7575
with:
76-
release: R2025b
76+
release: latest
7777

7878
# Download the test results from artifact
7979
- name: Download All TestResults
@@ -88,6 +88,15 @@ jobs:
8888
uses: matlab-actions/run-command@v2
8989
with:
9090
command: openProject(pwd); PostSmokeTest;
91+
92+
# Upload the badege as artifact
93+
- name: Upload Badge
94+
if: ${{ always() }}
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: Badge-Artifact
98+
path: ./public/TestedWith.json
99+
overwrite: true
91100

92101
# Deploy reports to GitHub pages
93102
- name: Setup Pages
@@ -101,13 +110,13 @@ jobs:
101110
uses: actions/deploy-pages@v4
102111

103112
# Commit the JSON for the MATLAB releases badge
104-
- name: Commit changed files
105-
continue-on-error: true
106-
run: |
107-
git config user.name "${{ github.workflow }} by ${{ github.actor }}"
108-
git config user.email "<>"
109-
git pull
110-
git add Images/TestedWith.json
111-
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
112-
git fetch
113-
git push
113+
# - name: Commit changed files
114+
# continue-on-error: true
115+
# run: |
116+
# git config user.name "${{ github.workflow }} by ${{ github.actor }}"
117+
# git config user.email "<>"
118+
# git pull
119+
# git add Images/TestedWith.json
120+
# git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
121+
# git fetch
122+
# git push

SoftwareTests/PostSmokeTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function PostSmokeTest(ShowReport)
5757
Badge.message = join("R"+Version," | ");
5858
end
5959
Badge = jsonencode(Badge);
60-
writelines(Badge,fullfile("Images","TestedWith.json"));
60+
writelines(Badge,fullfile("public","TestedWith.json"));
6161

6262
if ShowReport
6363
web(fullfile(Folder,"index.html"))

0 commit comments

Comments
 (0)