From b41250c23a76868122d86460e7100351da78c7ad Mon Sep 17 00:00:00 2001 From: scito Date: Sun, 18 Feb 2024 20:27:54 +0100 Subject: [PATCH] ci: upgrade to actions/upload-artifact@v4 --- .github/workflows/ci_docker.yml | 6 +++--- .github/workflows/ci_release.yml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index 5413078..dbea2a7 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -100,7 +100,7 @@ jobs: echo "${{ steps.docker_build_qr_reader_latest.outputs.digest }}" > digests.txt - name: Save docker digests as artifacts if: github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: debian_digests path: digests.txt @@ -176,7 +176,7 @@ jobs: - name: Save docker digests as artifacts if: github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: alpine_digests path: digests.txt @@ -253,7 +253,7 @@ jobs: echo "${{ steps.docker_build_qr_reader_latest.outputs.digest }}" > digests.txt - name: Save docker digests as artifacts if: github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bullseye_digests path: digests.txt diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 16fb5d1..1124b3c 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -94,13 +94,13 @@ jobs: echo $(jq -r '.id' <<< "$response") > release_id.txt - name: Save Release URL File for publish if: startsWith(github.ref, 'refs/tags/v') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release_url path: release_url.txt - name: Save asset upload id for publish if: startsWith(github.ref, 'refs/tags/v') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release_id path: release_id.txt @@ -194,13 +194,13 @@ jobs: docker run --platform ${{ matrix.PLATFORM }} --pull always --entrypoint /bin/bash --rm -v "$(pwd)":/files -w /files scit0/extract_otp_secrets -c 'dist/${{ matrix.EXE }} -V && dist/${{ matrix.EXE }} -h && dist/${{ matrix.EXE }} example_export.png && dist/${{ matrix.EXE }} - < example_export.txt && dist/${{ matrix.EXE }} --qr ZBAR example_export.png && dist/${{ matrix.EXE }} --qr QREADER example_export.png && dist/${{ matrix.EXE }} --qr QREADER_DEEP example_export.png && dist/${{ matrix.EXE }} --qr CV2 example_export.png && dist/${{ matrix.EXE }} --qr CV2_WECHAT example_export.png' - name: Load Release URL File from release job if: startsWith(github.ref, 'refs/tags/v') - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release_url - name: Display structure of files run: ls -R - name: Upload EXE to artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.EXE }} path: dist/${{ matrix.EXE }} @@ -317,12 +317,12 @@ jobs: dist/${{ matrix.EXE }} - < example_export.txt - name: Load Release URL File from release job if: startsWith(github.ref, 'refs/tags/v') - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release_url - name: Load Release Id File from release job if: startsWith(github.ref, 'refs/tags/v') - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release_id - name: Display structure of files @@ -335,12 +335,12 @@ jobs: echo "release_id=$(cat release_id.txt)" >> $GITHUB_OUTPUT echo "upload_url=https://uploads.github.com/repos/scito/extract_otp_secrets/releases/$(cat release_id.txt)/assets?name=" >> $GITHUB_OUTPUT - name: Upload EXE to artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.EXE }} path: dist/${{ matrix.EXE }} - name: Upload DMG to artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: runner.os == 'macOS' with: name: ${{ matrix.DMG }} @@ -365,7 +365,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Load Release Id File from release job - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release_id - name: Set meta data