Skip to content

Commit 880122d

Browse files
committed
Updated publish-go-nightly job
In this case the jobs exploited the previous action behaviour when uploading multiple artifacts under the same "name". To upgrade to v4 we need to upload artifacts with unique "name" and merge them when downloading using the "pattern" property.
1 parent 1df34f2 commit 880122d

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
run: echo "version=$(task general:get-version)" >> $GITHUB_OUTPUT
6666

6767
- name: Upload artifacts
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
7070
if-no-files-found: error
71-
name: ${{ env.ARTIFACT_NAME }}
71+
name: ${{ env.ARTIFACT_NAME }}-${{ matrix.os }}
7272
path: ${{ env.DIST_DIR }}
7373

7474
notarize-macos:
@@ -92,9 +92,10 @@ jobs:
9292
uses: actions/checkout@v4
9393

9494
- name: Download artifacts
95-
uses: actions/download-artifact@v3
95+
uses: actions/download-artifact@v4
9696
with:
97-
name: ${{ env.ARTIFACT_NAME }}
97+
pattern: ${{ env.ARTIFACT_NAME }}-*
98+
merge-multiple: true
9899
path: ${{ env.DIST_DIR }}
99100

100101
- name: Import Code-Signing Certificates
@@ -167,10 +168,10 @@ jobs:
167168
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV
168169
169170
- name: Upload artifact
170-
uses: actions/upload-artifact@v3
171+
uses: actions/upload-artifact@v4
171172
with:
172173
if-no-files-found: error
173-
name: ${{ env.ARTIFACT_NAME }}
174+
name: ${{ env.ARTIFACT_NAME }}-notarized-${{ matrix.artifact.name }}
174175
path: ${{ env.DIST_DIR }}/${{ env.PACKAGE_FILENAME }}
175176

176177
create-windows-installer:
@@ -192,9 +193,10 @@ jobs:
192193
uses: actions/checkout@v4
193194

194195
- name: Download artifacts
195-
uses: actions/download-artifact@v3
196+
uses: actions/download-artifact@v4
196197
with:
197-
name: ${{ env.ARTIFACT_NAME }}
198+
pattern: ${{ env.ARTIFACT_NAME }}-*
199+
merge-multiple: true
198200
path: ${{ env.DIST_DIR }}
199201

200202
- name: Prepare PATH
@@ -222,12 +224,12 @@ jobs:
222224
"${{ env.SIGNTOOL_PATH }}" sign -d "Arduino CLI" -f ${{ env.INSTALLER_CERT_WINDOWS_CER}} -csp "eToken Base Cryptographic Provider" -k "[{{${{ env.CERT_PASSWORD }}}}]=${{ env.CONTAINER_NAME }}" -fd sha256 -tr http://timestamp.digicert.com -td SHA256 -v "${{ env.MSI_FILE }}"
223225
224226
- name: Upload artifacts
225-
uses: actions/upload-artifact@v3
227+
uses: actions/upload-artifact@v4
226228
env:
227229
MSI_FILE: ${{ steps.buildmsi.outputs.msi }}
228230
with:
229231
if-no-files-found: error
230-
name: ${{ env.ARTIFACT_NAME }}
232+
name: ${{ env.ARTIFACT_NAME }}-windows-installer
231233
path: ${{ env.MSI_FILE }}
232234

233235
publish-nightly:
@@ -246,9 +248,10 @@ jobs:
246248
uses: actions/checkout@v4
247249

248250
- name: Download artifact
249-
uses: actions/download-artifact@v3
251+
uses: actions/download-artifact@v4
250252
with:
251-
name: ${{ env.ARTIFACT_NAME }}
253+
pattern: ${{ env.ARTIFACT_NAME }}-*
254+
merge-multiple: true
252255
path: ${{ env.DIST_DIR }}
253256

254257
- name: Install Task

0 commit comments

Comments
 (0)