Skip to content

Commit b694582

Browse files
authored
Update release.yaml
1 parent 6799734 commit b694582

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,9 @@ jobs:
1414
- name: Checkout Repository
1515
uses: actions/checkout@v3
1616

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
2917
- name: Pack JSON Folder
3018
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
3220
3321
- name: Install Python xxhash
3422
run: |
@@ -37,7 +25,7 @@ jobs:
3725
- name: Calculate Version from xxHash3
3826
id: calculate_version
3927
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()))")
4129
echo "Calculated version hash: $version_hash"
4230
echo "::set-output name=version::$version_hash"
4331
@@ -52,7 +40,7 @@ jobs:
5240
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5341
with:
5442
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 }}"
5644
draft: false
5745
prerelease: false
5846

@@ -62,9 +50,9 @@ jobs:
6250
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6351
with:
6452
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
6856

6957

7058

0 commit comments

Comments
 (0)