Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
again the file shitttt
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Feb 5, 2024
1 parent 4ca7c0d commit 8efdb3f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,19 @@ jobs:
id: hashes
run: |
cd x64/Release
hash_array=""
for file in *; do
file_name=$(basename "$file")
hash_value=$(sha256sum "$file" | cut -d' ' -f1)
hash_array="${hash_array}${file_name}: ${hash_value}"$'\n'
echo "${file_name}: ${hash_value}" >> hashes.txt
done
echo "::set-output name=hashes::${hash_array}"
echo "::set-output name=hash_file::hashes.txt"
- name: Read Hashes from File
id: read_hashes
run: |
hashes=$(cat ${{ steps.hashes.outputs.hash_file }})
echo "::set-output name=hashes::${hashes}"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
Expand All @@ -73,7 +77,7 @@ jobs:
body: |
**File Hashes:**
```
${{ steps.hashes.outputs.hashes }}
${{ steps.read_hashes.outputs.hashes }}
```
files: |
x64/Release/*
Expand Down

0 comments on commit 8efdb3f

Please sign in to comment.