ci: upgrade to actions/upload-artifact@v4
This commit is contained in:
6
.github/workflows/ci_docker.yml
vendored
6
.github/workflows/ci_docker.yml
vendored
@@ -100,7 +100,7 @@ jobs:
|
|||||||
echo "${{ steps.docker_build_qr_reader_latest.outputs.digest }}" > digests.txt
|
echo "${{ steps.docker_build_qr_reader_latest.outputs.digest }}" > digests.txt
|
||||||
- name: Save docker digests as artifacts
|
- name: Save docker digests as artifacts
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: debian_digests
|
name: debian_digests
|
||||||
path: digests.txt
|
path: digests.txt
|
||||||
@@ -176,7 +176,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Save docker digests as artifacts
|
- name: Save docker digests as artifacts
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: alpine_digests
|
name: alpine_digests
|
||||||
path: digests.txt
|
path: digests.txt
|
||||||
@@ -253,7 +253,7 @@ jobs:
|
|||||||
echo "${{ steps.docker_build_qr_reader_latest.outputs.digest }}" > digests.txt
|
echo "${{ steps.docker_build_qr_reader_latest.outputs.digest }}" > digests.txt
|
||||||
- name: Save docker digests as artifacts
|
- name: Save docker digests as artifacts
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bullseye_digests
|
name: bullseye_digests
|
||||||
path: digests.txt
|
path: digests.txt
|
||||||
|
|||||||
18
.github/workflows/ci_release.yml
vendored
18
.github/workflows/ci_release.yml
vendored
@@ -94,13 +94,13 @@ jobs:
|
|||||||
echo $(jq -r '.id' <<< "$response") > release_id.txt
|
echo $(jq -r '.id' <<< "$response") > release_id.txt
|
||||||
- name: Save Release URL File for publish
|
- name: Save Release URL File for publish
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release_url
|
name: release_url
|
||||||
path: release_url.txt
|
path: release_url.txt
|
||||||
- name: Save asset upload id for publish
|
- name: Save asset upload id for publish
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release_id
|
name: release_id
|
||||||
path: release_id.txt
|
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'
|
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
|
- name: Load Release URL File from release job
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release_url
|
name: release_url
|
||||||
- name: Display structure of files
|
- name: Display structure of files
|
||||||
run: ls -R
|
run: ls -R
|
||||||
- name: Upload EXE to artifacts
|
- name: Upload EXE to artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.EXE }}
|
name: ${{ matrix.EXE }}
|
||||||
path: dist/${{ matrix.EXE }}
|
path: dist/${{ matrix.EXE }}
|
||||||
@@ -317,12 +317,12 @@ jobs:
|
|||||||
dist/${{ matrix.EXE }} - < example_export.txt
|
dist/${{ matrix.EXE }} - < example_export.txt
|
||||||
- name: Load Release URL File from release job
|
- name: Load Release URL File from release job
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release_url
|
name: release_url
|
||||||
- name: Load Release Id File from release job
|
- name: Load Release Id File from release job
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release_id
|
name: release_id
|
||||||
- name: Display structure of files
|
- name: Display structure of files
|
||||||
@@ -335,12 +335,12 @@ jobs:
|
|||||||
echo "release_id=$(cat release_id.txt)" >> $GITHUB_OUTPUT
|
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
|
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
|
- name: Upload EXE to artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.EXE }}
|
name: ${{ matrix.EXE }}
|
||||||
path: dist/${{ matrix.EXE }}
|
path: dist/${{ matrix.EXE }}
|
||||||
- name: Upload DMG to artifacts
|
- name: Upload DMG to artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.DMG }}
|
name: ${{ matrix.DMG }}
|
||||||
@@ -365,7 +365,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Load Release Id File from release job
|
- name: Load Release Id File from release job
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release_id
|
name: release_id
|
||||||
- name: Set meta data
|
- name: Set meta data
|
||||||
|
|||||||
Reference in New Issue
Block a user