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

Commit

Permalink
removed file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Feb 5, 2024
1 parent d041149 commit cfe42d1
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ jobs:
- name: Set up Git
run: git fetch --tags

- name: Get the latest tag
id: get_tag
run: |
latest_tag=$(git tag -l --sort=-v:refname | head -n 1)
if [ -z "$latest_tag" ]; then
latest_tag="v0.1.0" # Fallback tag if no tags exist
fi
echo "Latest tag: $latest_tag"
echo "TAG=$latest_tag" >> $GITHUB_ENV
- name: Display release version
run: |
echo "Release version: ${{ env.TAG }}"
Expand All @@ -64,17 +54,14 @@ jobs:
- name: Generate SHA256 hashes
id: hashes
run: |
declare -A processed_files
for file in x64/Release/*; do
cd x64/Release
hash_output=""
for file in *; do
file_name=$(basename "$file")
if [ -z "${processed_files[$file_name]}" ]; then
echo "$file_name: $(sha256sum "$file" | cut -d' ' -f1)" >> hashes.txt
processed_files[$file_name]="processed"
fi
hash_output+="$(echo "$file_name: $(sha256sum "$file" | cut -d' ' -f1)")"$'\n'
done
cat hashes.txt
echo "::set-output name=hashes::$(cat hashes.txt)"
echo "::set-output name=hashes::${hash_output}"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit cfe42d1

Please sign in to comment.