From db6926618f877bb8db62899598ad4978adcd0c7c Mon Sep 17 00:00:00 2001 From: Tom-Oliver Heidel Date: Mon, 26 Jul 2021 03:03:00 +0200 Subject: [PATCH] Update build.yml checksums will be generated in another machine. --- .github/workflows/build.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 186ec1fd2..baad98dcb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,9 +55,7 @@ jobs: asset_content_type: application/octet-stream - name: Get SHA2-256SUMS for youtube-dlc id: sha2_file - env: - SHA2: ${{ hashFiles('youtube-dlc') }} - run: echo "::set-output name=sha2_unix::$SHA2" + run: echo "::set-output name=sha2_unix::$(sha256sum youtube-dlc | awk '{print $1}')" - name: Install dependencies for pypi run: | python -m pip install --upgrade pip @@ -104,9 +102,7 @@ jobs: asset_content_type: application/vnd.microsoft.portable-executable - name: Get SHA2-256SUMS for youtube-dlc.exe id: sha2_file_win - env: - SHA2_win: ${{ hashFiles('dist/youtube-dlc.exe') }} - run: echo "::set-output name=sha2_windows::$SHA2_win" + run: echo "::set-output name=sha2_windows::$((Get-FileHash dist\youtube-dlc.exe -Algorithm SHA256).Hash.ToLower())" build_windows32: @@ -142,9 +138,15 @@ jobs: asset_content_type: application/vnd.microsoft.portable-executable - name: Get SHA2-256SUMS for youtube-dlc_x86.exe id: sha2_file_win32 - env: - SHA2_win32: ${{ hashFiles('dist/youtube-dlc_x86.exe') }} - run: echo "::set-output name=sha2_windows32::$SHA2_win32" + run: echo "::set-output name=sha256_windows32::$((Get-FileHash dist\youtube-dlc_x86.exe -Algorithm SHA256).Hash.ToLower())" + + checksums: + + runs-on: ubuntu-latest + + needs: [build_unix, build_windows, build_windows32] + + steps: - name: Make SHA2-256SUMS file env: SHA2_WINDOWS: ${{ needs.build_windows.outputs.sha2_windows }}