Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari authored Dec 3, 2024
1 parent 39b9f7d commit bc98bda
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ jobs:
- name: Pack JSON Folder
run: |
dotnet run --project NexusMods.Archives.Nx/NexusMods.Archives.Nx.Cli/NexusMods.Archives.Nx.Cli.csproj -- pack --source ./json --target ./minimal_hashes.nx --deduplicate-chunked=true --chunkedlevel=22
- name: Install Python xxhash
run: |
pip install xxhash
- name: Calculate Version from xxHash3
id: calculate_version
run: |
apt-get update && apt-get install -y xxhash
version_hash=$(xxhsum -H3 ./minimal_hashes.nx | awk '{print $1}')
version_hash=$(python -c "import xxhash; print(xxhash.xxh3_64_hexdigest(open('./minimal_hashes.nx', 'rb').read()))")
echo "Calculated version hash: $version_hash"
echo "::set-output name=version::$version_hash"
Expand Down Expand Up @@ -63,3 +67,4 @@ jobs:
asset_content_type: application/octet-stream



0 comments on commit bc98bda

Please sign in to comment.