|
14 | 14 | - name: Checkout Repository
|
15 | 15 | uses: actions/checkout@v3
|
16 | 16 |
|
17 |
| - - name: Download NexusMods.Archives.Nx Repository |
18 |
| - run: | |
19 |
| - git clone https://github.com/Nexus-Mods/NexusMods.Archives.Nx.git |
20 |
| - - name: Set Up .NET Core |
21 |
| - uses: actions/setup-dotnet@v3 |
22 |
| - with: |
23 |
| - dotnet-version: '8.x' |
24 |
| - |
25 |
| - - name: Restore Dependencies for NexusMods.Archives.Nx.Cli |
26 |
| - run: | |
27 |
| - cd NexusMods.Archives.Nx/NexusMods.Archives.Nx.Cli |
28 |
| - dotnet restore |
29 | 17 | - name: Pack JSON Folder
|
30 | 18 | run: |
|
31 |
| - 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 |
| 19 | + zip -r -9 minimal_hashes.zip ./json |
32 | 20 |
|
33 | 21 | - name: Install Python xxhash
|
34 | 22 | run: |
|
|
37 | 25 | - name: Calculate Version from xxHash3
|
38 | 26 | id: calculate_version
|
39 | 27 | run: |
|
40 |
| - version_hash=$(python -c "import xxhash; print(xxhash.xxh3_64_hexdigest(open('./minimal_hashes.nx', 'rb').read()))") |
| 28 | + version_hash=$(python -c "import xxhash; print(xxhash.xxh3_64_hexdigest(open('./minimal_hashes.zip', 'rb').read()))").read()))") |
41 | 29 | echo "Calculated version hash: $version_hash"
|
42 | 30 | echo "::set-output name=version::$version_hash"
|
43 | 31 |
|
|
52 | 40 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
53 | 41 | with:
|
54 | 42 | tag_name: "v${{ steps.calculate_version.outputs.version }}"
|
55 |
| - release_name: "Release ${{ steps.calculate_version.outputs.version }}" |
| 43 | + release_name: "Release v${{ steps.calculate_version.outputs.version }}" |
56 | 44 | draft: false
|
57 | 45 | prerelease: false
|
58 | 46 |
|
|
62 | 50 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
63 | 51 | with:
|
64 | 52 | upload_url: ${{ steps.create_release.outputs.upload_url }}
|
65 |
| - asset_path: ./minimal_hashes.nx |
66 |
| - asset_name: minimal_hashes.nx |
67 |
| - asset_content_type: application/octet-stream |
| 53 | + asset_path: ./minimal_hashes.zip |
| 54 | + asset_name: minimal_hashes.zip |
| 55 | + asset_content_type: application/zip |
68 | 56 |
|
69 | 57 |
|
70 | 58 |
|
0 commit comments