Skip to content

Commit f1af382

Browse files
authored
Merge pull request #56 from arduino/dependabot/github_actions/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4
2 parents b42b826 + 4fa043e commit f1af382

File tree

4 files changed

+51
-37
lines changed

4 files changed

+51
-37
lines changed

.github/workflows/check-go-dependencies-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
# Some might find it convenient to have CI generate the cache rather than setting up for it locally
103103
- name: Upload cache to workflow artifact
104104
if: failure() && steps.diff.outcome == 'failure'
105-
uses: actions/upload-artifact@v3
105+
uses: actions/upload-artifact@v4
106106
with:
107107
if-no-files-found: error
108108
include-hidden-files: true

.github/workflows/publish-go-tester-task.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
128128
# Transfer builds to artifacts job
129129
- name: Upload build artifact
130-
uses: actions/upload-artifact@v3
130+
uses: actions/upload-artifact@v4
131131
with:
132132
path: ${{ env.DIST_DIR }}/${{ matrix.os.path }}
133133
name: ${{ matrix.os.artifact-name }}
@@ -140,7 +140,7 @@ jobs:
140140

141141
steps:
142142
- name: Download build artifacts
143-
uses: actions/download-artifact@v3
143+
uses: actions/download-artifact@v4
144144

145145
- name: Create checksum file
146146
run: |
@@ -155,7 +155,7 @@ jobs:
155155
done
156156
157157
- name: Upload checksum artifact
158-
uses: actions/upload-artifact@v3
158+
uses: actions/upload-artifact@v4
159159
with:
160160
path: ./*checksums.txt
161161
name: checksums

.github/workflows/release-go-task.yml

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
DIST_DIR: dist
99
# The project's folder on Arduino's download server for uploading builds
1010
AWS_PLUGIN_TARGET: /discovery/mdns-discovery/
11-
ARTIFACT_NAME: dist
11+
ARTIFACT_PREFIX: dist-
1212

1313
on:
1414
push:
@@ -21,16 +21,25 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
task:
25-
- Windows_32bit
26-
- Windows_64bit
27-
- Linux_32bit
28-
- Linux_64bit
29-
- Linux_ARMv6
30-
- Linux_ARMv7
31-
- Linux_ARM64
32-
- macOS_64bit
33-
- macOS_ARM64
24+
os:
25+
- task: Windows_32bit
26+
artifact-suffix: Windows_32bit
27+
- task: Windows_64bit
28+
artifact-suffix: Windows_64bit
29+
- task: Linux_32bit
30+
artifact-suffix: Linux_32bit
31+
- task: Linux_64bit
32+
artifact-suffix: Linux_64bit
33+
- task: Linux_ARMv6
34+
artifact-suffix: Linux_ARMv6
35+
- task: Linux_ARMv7
36+
artifact-suffix: Linux_ARMv7
37+
- task: Linux_ARM64
38+
artifact-suffix: Linux_ARM64
39+
- task: macOS_64bit
40+
artifact-suffix: macOS_64bit
41+
- task: macOS_ARM64
42+
artifact-suffix: macOS_ARM64
3443

3544
steps:
3645
- name: Checkout repository
@@ -40,7 +49,7 @@ jobs:
4049

4150
- name: Create changelog
4251
# Avoid creating the same changelog for each os
43-
if: matrix.task == 'Windows_32bit'
52+
if: matrix.os.task == 'Windows_32bit'
4453
uses: arduino/create-changelog@v1
4554
with:
4655
tag-regex: '^v?[0-9]+\.[0-9]+\.[0-9]+.*$'
@@ -55,13 +64,13 @@ jobs:
5564
version: 3.x
5665

5766
- name: Build
58-
run: task dist:${{ matrix.task }}
67+
run: task dist:${{ matrix.os.task }}
5968

6069
- name: Upload artifacts
61-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
6271
with:
6372
if-no-files-found: error
64-
name: ${{ env.ARTIFACT_NAME }}
73+
name: ${{ env.ARTIFACT_PREFIX }}${{ matrix.os.artifact-suffix }}
6574
path: ${{ env.DIST_DIR }}
6675

6776
notarize-macos:
@@ -75,9 +84,11 @@ jobs:
7584
strategy:
7685
matrix:
7786
build:
78-
- folder-suffix: darwin_amd64
87+
- artifact-suffix: macOS_64bit
88+
folder-suffix: darwin_amd64
7989
package-suffix: "macOS_64bit.tar.gz"
80-
- folder-suffix: darwin_arm64
90+
- artifact-suffix: macOS_ARM64
91+
folder-suffix: darwin_arm64
8192
package-suffix: "macOS_ARM64.tar.gz"
8293

8394
steps:
@@ -92,9 +103,9 @@ jobs:
92103
uses: actions/checkout@v4
93104

94105
- name: Download artifacts
95-
uses: actions/download-artifact@v3
106+
uses: actions/download-artifact@v4
96107
with:
97-
name: ${{ env.ARTIFACT_NAME }}
108+
name: ${{ env.ARTIFACT_PREFIX }}${{ matrix.build.artifact-suffix }}
98109
path: ${{ env.DIST_DIR }}
99110

100111
- name: Import Code-Signing Certificates
@@ -164,11 +175,12 @@ jobs:
164175
chmod +x "${{ env.BUILD_FOLDER }}/${{ env.PROJECT_NAME }}"
165176
tar -czvf "${{ env.PACKAGE_FILENAME }}" "${{ env.BUILD_FOLDER }}"
166177
167-
- name: Upload artifact
168-
uses: actions/upload-artifact@v3
178+
- name: Replace artifact with notarized build
179+
uses: actions/upload-artifact@v4
169180
with:
170181
if-no-files-found: error
171-
name: ${{ env.ARTIFACT_NAME }}
182+
name: ${{ env.ARTIFACT_PREFIX }}${{ matrix.build.artifact-suffix }}
183+
overwrite: true
172184
path: ${{ env.DIST_DIR }}/${{ env.PACKAGE_FILENAME }}
173185

174186
create-release:
@@ -177,9 +189,10 @@ jobs:
177189

178190
steps:
179191
- name: Download artifact
180-
uses: actions/download-artifact@v3
192+
uses: actions/download-artifact@v4
181193
with:
182-
name: ${{ env.ARTIFACT_NAME }}
194+
pattern: ${{ env.ARTIFACT_PREFIX }}*
195+
merge-multiple: true
183196
path: ${{ env.DIST_DIR }}
184197

185198
- name: Create checksum file

.github/workflows/sync-labels.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
env:
2121
CONFIGURATIONS_FOLDER: .github/label-configuration-files
22-
CONFIGURATIONS_ARTIFACT: label-configuration-files
22+
CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file-
2323

2424
jobs:
2525
check:
@@ -70,13 +70,13 @@ jobs:
7070
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}
7171

7272
- name: Pass configuration files to next job via workflow artifact
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
7575
path: |
7676
*.yaml
7777
*.yml
7878
if-no-files-found: error
79-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
79+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
8080

8181
sync:
8282
needs: download
@@ -107,16 +107,17 @@ jobs:
107107
- name: Checkout repository
108108
uses: actions/checkout@v4
109109

110-
- name: Download configuration files artifact
111-
uses: actions/download-artifact@v3
110+
- name: Download configuration file artifacts
111+
uses: actions/download-artifact@v4
112112
with:
113-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
113+
merge-multiple: true
114+
pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
114115
path: ${{ env.CONFIGURATIONS_FOLDER }}
115116

116-
- name: Remove unneeded artifact
117-
uses: geekyeggo/delete-artifact@v2
117+
- name: Remove unneeded artifacts
118+
uses: geekyeggo/delete-artifact@v5
118119
with:
119-
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
120+
name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}*
120121

121122
- name: Merge label configuration files
122123
run: |

0 commit comments

Comments
 (0)