Skip to content

Commit d135e0c

Browse files
authored
Updated all instances of upload/download artifact to use v4 (#1295)
**Title:** Updated all instances of upload/download artifact to use v4 **Summary:** All versions of `actions/upload-artifact` and `actions/download-artifact` that are older than major version `v4` are no longer supported by GitHub: [See Blogpost](https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/) This PR updates all instances of these actions within the QML CI to use the v4 version. **Relevant references:** [sc-81821] **Possible Drawbacks:** Though on the slight chance some hiccups can be encountered, we have no choice but for fall forwards on this change. **Related GitHub Issues:** None.
1 parent f2e3e11 commit d135e0c

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/workflows/build-branch.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ jobs:
224224
echo "strategy-matrix=$matrix" >> $GITHUB_OUTPUT
225225
226226
- name: Upload Workers Load Data as Artifact
227-
uses: actions/upload-artifact@v3
227+
uses: actions/upload-artifact@v4
228228
with:
229229
name: ${{ steps.compute-strategy-matrix.outputs.worker_load_artifact_name }}
230230
path: ${{ steps.compute-strategy-matrix.outputs.worker_load_file_name }}
@@ -323,7 +323,7 @@ jobs:
323323
sudo apt install ocl-icd-opencl-dev
324324
325325
- name: Download Worker Load Data Artifact
326-
uses: actions/download-artifact@v3
326+
uses: actions/download-artifact@v4
327327
with:
328328
name: ${{ needs.compute-build-strategy-matrix.outputs.worker-load-artifact-name }}
329329

@@ -466,7 +466,7 @@ jobs:
466466
467467
- name: Upload Execution Times
468468
if: inputs.skip_execution_of_examples == false
469-
uses: actions/upload-artifact@v3
469+
uses: actions/upload-artifact@v4
470470
with:
471471
name: execution_times_${{ matrix.offset }}.zip
472472
if-no-files-found: error
@@ -500,7 +500,7 @@ jobs:
500500
501501
- name: Upload Html
502502
if: matrix.offset == 0
503-
uses: actions/upload-artifact@v3
503+
uses: actions/upload-artifact@v4
504504
with:
505505
name: html-${{ matrix.offset }}.zip
506506
if-no-files-found: error
@@ -513,7 +513,7 @@ jobs:
513513
# The step above this is executed by only one worker which uploads all static content.
514514
- name: Upload Demo Html
515515
if: matrix.offset != 0
516-
uses: actions/upload-artifact@v3
516+
uses: actions/upload-artifact@v4
517517
with:
518518
name: html-${{ matrix.offset }}.zip
519519
if-no-files-found: error
@@ -534,7 +534,7 @@ jobs:
534534
- build-branch
535535
steps:
536536
- name: Download Artifacts
537-
uses: actions/download-artifact@v3
537+
uses: actions/download-artifact@v4
538538
with:
539539
path: artifacts
540540

@@ -564,15 +564,15 @@ jobs:
564564
565565
- name: Upload Sphinx Build files
566566
if: inputs.skip_sphinx_build_file_aggregation == false
567-
uses: actions/upload-artifact@v3
567+
uses: actions/upload-artifact@v4
568568
with:
569569
name: ${{ inputs.sphinx_build_output_format }}.zip
570570
if-no-files-found: error
571571
path: artifacts/website
572572

573573
- name: Upload Execution Times
574574
if: inputs.skip_execution_of_examples == false && inputs.skip_execution_times_aggregation == false
575-
uses: actions/upload-artifact@v3
575+
uses: actions/upload-artifact@v4
576576
with:
577577
name: execution_times.zip
578578
path: /tmp/execution_times

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
EOL
150150
- name: Upload Pull Request Event Context as Artifact
151151
if: github.event_name == 'pull_request'
152-
uses: actions/upload-artifact@v3
152+
uses: actions/upload-artifact@v4
153153
with:
154154
name: pr_info
155155
path: /tmp/pr

.github/workflows/demo_diff_check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
make html
6868
zip -r /tmp/qml_demos.zip demos
6969
70-
- uses: actions/upload-artifact@v2
70+
- uses: actions/upload-artifact@v4
7171
with:
7272
name: built-website-dev
7373
path: |
@@ -136,7 +136,7 @@ jobs:
136136
make html
137137
zip -r /tmp/qml_demos.zip demos
138138
139-
- uses: actions/upload-artifact@v2
139+
- uses: actions/upload-artifact@v4
140140
with:
141141
name: built-website-master
142142
path: |
@@ -156,15 +156,15 @@ jobs:
156156
- name: Create dev dir
157157
run: mkdir /tmp/dev/
158158

159-
- uses: actions/download-artifact@v2
159+
- uses: actions/download-artifact@v4
160160
with:
161161
name: built-website-dev
162162
path: /tmp/dev/
163163

164164
- name: Create master dir
165165
run: mkdir /tmp/master/
166166

167-
- uses: actions/download-artifact@v2
167+
- uses: actions/download-artifact@v4
168168
with:
169169
name: built-website-master
170170
path: /tmp/master/
@@ -186,7 +186,7 @@ jobs:
186186
git commit -m "Update the demonstration differences found"
187187
git push
188188
189-
- uses: actions/upload-artifact@v2
189+
- uses: actions/upload-artifact@v4
190190
with:
191191
name: demo_diffs
192192
path: |

.github/workflows/upload-json.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- name: Download HTML
6363
id: qml_json
64-
uses: actions/download-artifact@v3
64+
uses: actions/download-artifact@v4
6565
with:
6666
name: ${{ inputs.artifact_name }}
6767
path: qml_json

.github/workflows/upload-text.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Download Text
4747
id: qml_text
48-
uses: actions/download-artifact@v3
48+
uses: actions/download-artifact@v4
4949
with:
5050
name: ${{ inputs.artifact_name }}
5151
path: qml_text

0 commit comments

Comments
 (0)