Skip to content

Commit a1e5d2e

Browse files
authored
CI: migrate all upload-artifact actions from v3 to v4 (flameshot-org#3830)
* migrate all upload-artifact actions from v3 to v4 * fix the artifact overwrite in @v4
1 parent 61a6074 commit a1e5d2e

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/Linux-pack.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,13 @@ jobs:
232232
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/build/${PRODUCT}-${VERSION}-${RELEASE}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb)
233233
echo "======no operation for you can see link in the log console====="
234234
- name: Artifact Upload
235-
uses: actions/upload-artifact@v3
235+
uses: actions/upload-artifact@v4
236236
with:
237237
name: Linux-distribution-artifact
238238
path: |
239239
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb
240240
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb.sha256sum
241+
overwrite: true
241242

242243
rpm-pack:
243244
name: Build rpm on ${{ matrix.dist.name }} ${{ matrix.dist.arch }}
@@ -339,20 +340,23 @@ jobs:
339340
echo "======no operation for you can see link in the log console====="
340341
- name: Artifact Upload
341342
if: matrix.dist.os == 'fedora'
342-
uses: actions/upload-artifact@v3
343+
uses: actions/upload-artifact@v4
343344
with:
344345
name: Linux-distribution-artifact
345346
path: |
346347
${{ github.workspace }}/build/
348+
overwrite: true
347349

348350
- name: Artifact Upload
349351
if: matrix.dist.os == 'opensuse-leap'
350-
uses: actions/upload-artifact@v3
352+
uses: actions/upload-artifact@v4
351353
with:
352354
name: Linux-distribution-artifact
353355
path: |
354356
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm
355357
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm.sha256sum
358+
overwrite: true
359+
356360
appimage-pack:
357361
name: Build appimage on ${{ matrix.config.name }}
358362
runs-on: ubuntu-22.04
@@ -481,12 +485,13 @@ jobs:
481485
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/Flameshot-${VERSION}.x86_64.AppImage)
482486
echo "======no operation for you can see link in the log console====="
483487
- name: Artifact Upload
484-
uses: actions/upload-artifact@v3
488+
uses: actions/upload-artifact@v4
485489
with:
486490
name: Linux-distribution-artifact
487491
path: |
488492
${{ github.workspace }}/Flameshot-*.x86_64.AppImage
489493
${{ github.workspace }}/Flameshot-*.x86_64.AppImage.sha256sum
494+
overwrite: true
490495

491496
flatpak-pack:
492497
name: Build flatpak on ubuntu-20.04
@@ -547,12 +552,13 @@ jobs:
547552
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.x86_64.flatpak)
548553
echo "======no operation for you can see link in the log console====="
549554
- name: Artifact Upload
550-
uses: actions/upload-artifact@v3
555+
uses: actions/upload-artifact@v4
551556
with:
552557
name: Linux-distribution-artifact
553558
path: |
554559
${{ github.workspace }}/org.flameshot.Flameshot-*.x86_64.flatpak
555560
${{ github.workspace }}/org.flameshot.Flameshot-*.x86_64.flatpak.sha256sum
561+
overwrite: true
556562

557563
snap-pack:
558564
name: Build snap on ubuntu-20.04
@@ -604,9 +610,10 @@ jobs:
604610
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/build/${PRODUCT}-${VERSION}-${RELEASE}.amd64.snap)
605611
echo "======no operation for you can see link in the log console====="
606612
- name: Artifact Upload
607-
uses: actions/upload-artifact@v3
613+
uses: actions/upload-artifact@v4
608614
with:
609615
name: Linux-distribution-artifact
610616
path: |
611617
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.amd64.snap
612618
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.amd64.snap.sha256sum
619+
overwrite: true

.github/workflows/MacOS-pack.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ jobs:
8080
echo "=====no operation for you can see link in the log console====="
8181
8282
- name: Artifact Upload
83-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
8484
with:
8585
name: MacOS-artifact
8686
path: ${{ github.workspace }}/build/src/flameshot.dmg
87+
overwrite: true
8788

8889
- name: Notarization status
8990
shell: bash

.github/workflows/Windows-pack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,4 @@ jobs:
207207
with:
208208
name: Windows-${{ matrix.config.arch }}-${{ matrix.type }}-artifact
209209
path: ${{ github.workspace }}/build/Package/*
210+
overwrite: true

0 commit comments

Comments
 (0)