mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-30 13:49:48 +00:00
CI: migrate all upload-artifact actions from v3 to v4 (#3830)
* migrate all upload-artifact actions from v3 to v4 * fix the artifact overwrite in @v4
This commit is contained in:
committed by
GitHub
parent
61a6074bec
commit
a1e5d2e230
19
.github/workflows/Linux-pack.yml
vendored
19
.github/workflows/Linux-pack.yml
vendored
@@ -232,12 +232,13 @@ jobs:
|
|||||||
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/build/${PRODUCT}-${VERSION}-${RELEASE}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb)
|
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/build/${PRODUCT}-${VERSION}-${RELEASE}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb)
|
||||||
echo "======no operation for you can see link in the log console====="
|
echo "======no operation for you can see link in the log console====="
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-distribution-artifact
|
name: Linux-distribution-artifact
|
||||||
path: |
|
path: |
|
||||||
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb
|
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb
|
||||||
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb.sha256sum
|
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.${{ matrix.dist.name }}.${{ matrix.dist.arch }}.deb.sha256sum
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
rpm-pack:
|
rpm-pack:
|
||||||
name: Build rpm on ${{ matrix.dist.name }} ${{ matrix.dist.arch }}
|
name: Build rpm on ${{ matrix.dist.name }} ${{ matrix.dist.arch }}
|
||||||
@@ -339,20 +340,23 @@ jobs:
|
|||||||
echo "======no operation for you can see link in the log console====="
|
echo "======no operation for you can see link in the log console====="
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
if: matrix.dist.os == 'fedora'
|
if: matrix.dist.os == 'fedora'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-distribution-artifact
|
name: Linux-distribution-artifact
|
||||||
path: |
|
path: |
|
||||||
${{ github.workspace }}/build/
|
${{ github.workspace }}/build/
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
if: matrix.dist.os == 'opensuse-leap'
|
if: matrix.dist.os == 'opensuse-leap'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-distribution-artifact
|
name: Linux-distribution-artifact
|
||||||
path: |
|
path: |
|
||||||
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm
|
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm
|
||||||
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm.sha256sum
|
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-lp${{ matrix.dist.symbol }}.${{ matrix.dist.arch }}.rpm.sha256sum
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
appimage-pack:
|
appimage-pack:
|
||||||
name: Build appimage on ${{ matrix.config.name }}
|
name: Build appimage on ${{ matrix.config.name }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@@ -481,12 +485,13 @@ jobs:
|
|||||||
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/Flameshot-${VERSION}.x86_64.AppImage)
|
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/Flameshot-${VERSION}.x86_64.AppImage)
|
||||||
echo "======no operation for you can see link in the log console====="
|
echo "======no operation for you can see link in the log console====="
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-distribution-artifact
|
name: Linux-distribution-artifact
|
||||||
path: |
|
path: |
|
||||||
${{ github.workspace }}/Flameshot-*.x86_64.AppImage
|
${{ github.workspace }}/Flameshot-*.x86_64.AppImage
|
||||||
${{ github.workspace }}/Flameshot-*.x86_64.AppImage.sha256sum
|
${{ github.workspace }}/Flameshot-*.x86_64.AppImage.sha256sum
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
flatpak-pack:
|
flatpak-pack:
|
||||||
name: Build flatpak on ubuntu-20.04
|
name: Build flatpak on ubuntu-20.04
|
||||||
@@ -547,12 +552,13 @@ jobs:
|
|||||||
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.x86_64.flatpak)
|
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.x86_64.flatpak)
|
||||||
echo "======no operation for you can see link in the log console====="
|
echo "======no operation for you can see link in the log console====="
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-distribution-artifact
|
name: Linux-distribution-artifact
|
||||||
path: |
|
path: |
|
||||||
${{ github.workspace }}/org.flameshot.Flameshot-*.x86_64.flatpak
|
${{ github.workspace }}/org.flameshot.Flameshot-*.x86_64.flatpak
|
||||||
${{ github.workspace }}/org.flameshot.Flameshot-*.x86_64.flatpak.sha256sum
|
${{ github.workspace }}/org.flameshot.Flameshot-*.x86_64.flatpak.sha256sum
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
snap-pack:
|
snap-pack:
|
||||||
name: Build snap on ubuntu-20.04
|
name: Build snap on ubuntu-20.04
|
||||||
@@ -604,9 +610,10 @@ jobs:
|
|||||||
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/build/${PRODUCT}-${VERSION}-${RELEASE}.amd64.snap)
|
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/build/${PRODUCT}-${VERSION}-${RELEASE}.amd64.snap)
|
||||||
echo "======no operation for you can see link in the log console====="
|
echo "======no operation for you can see link in the log console====="
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Linux-distribution-artifact
|
name: Linux-distribution-artifact
|
||||||
path: |
|
path: |
|
||||||
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.amd64.snap
|
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.amd64.snap
|
||||||
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.amd64.snap.sha256sum
|
${{ github.workspace }}/build/${{ env.PRODUCT }}-*-${{ env.RELEASE }}.amd64.snap.sha256sum
|
||||||
|
overwrite: true
|
||||||
|
|||||||
3
.github/workflows/MacOS-pack.yml
vendored
3
.github/workflows/MacOS-pack.yml
vendored
@@ -80,10 +80,11 @@ jobs:
|
|||||||
echo "=====no operation for you can see link in the log console====="
|
echo "=====no operation for you can see link in the log console====="
|
||||||
|
|
||||||
- name: Artifact Upload
|
- name: Artifact Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: MacOS-artifact
|
name: MacOS-artifact
|
||||||
path: ${{ github.workspace }}/build/src/flameshot.dmg
|
path: ${{ github.workspace }}/build/src/flameshot.dmg
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
- name: Notarization status
|
- name: Notarization status
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
1
.github/workflows/Windows-pack.yml
vendored
1
.github/workflows/Windows-pack.yml
vendored
@@ -207,3 +207,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Windows-${{ matrix.config.arch }}-${{ matrix.type }}-artifact
|
name: Windows-${{ matrix.config.arch }}-${{ matrix.type }}-artifact
|
||||||
path: ${{ github.workspace }}/build/Package/*
|
path: ${{ github.workspace }}/build/Package/*
|
||||||
|
overwrite: true
|
||||||
|
|||||||
Reference in New Issue
Block a user