Skip to content

Commit 364dd96

Browse files
committed
Hash artifacts in build workflow using BLAKE3 in addition to SHA256
1 parent be7b0ff commit 364dd96

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
branch: master
3737
workflow_id: build.yml
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
- uses: awalsh128/cache-apt-pkgs-action@latest
40+
with:
41+
packages: b3sum
42+
version: 1.0
3943
- uses: actions/setup-dotnet@v4
4044
with:
4145
dotnet-version: "8.0.x"
@@ -75,13 +79,14 @@ jobs:
7579
}
7680
- name: Hash Artifacts
7781
run: |
78-
sha256sum ./bin/dist/*.zip > ./bin/dist/hashes.txt
79-
cat ./bin/dist/hashes.txt
82+
sha256sum ./bin/dist/*.zip > ./bin/dist/hashes.sha256
83+
b3sum ./bin/dist/*.zip > ./bin/dist/hashes.blake3
8084
- name: Upload Artifacts
8185
uses: actions/upload-artifact@v4
8286
with:
8387
path: |
8488
./bin/dist/*.zip
85-
./bin/dist/hashes.txt
89+
./bin/dist/hashes.sha256
90+
./bin/dist/hashes.blake3
8691
name: "BepInEx_CI_${{ steps.info.outputs.build_type }}_${{ steps.info.outputs.sha_short }}_${{ steps.info.outputs.build_id || 0 }}"
8792

0 commit comments

Comments
 (0)