-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checksums to release assets, closes #753
- Loading branch information
1 parent
ecd305b
commit f18fe8f
Showing
5 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -525,6 +525,23 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Actions" | ||
git pull --tags | ||
- name: Add checksums | ||
run: | | ||
output_file="checksums.txt" | ||
# Empty the output file if it exists | ||
> "$output_file" | ||
# Find and loop through all files starting with "linwood-butterfly" in the current directory | ||
for file in linwood-butterfly*; do | ||
# Check if the file exists (in case no matches were found) | ||
if [ -f "$file" ]; then | ||
# Append sha256sum to the output file in the format "hash filename" | ||
sha256sum "$file" >> "$output_file" | ||
fi | ||
done | ||
echo "SHA256 hashes for files starting with 'linwood-butterfly' saved to $output_file" | ||
- name: 🚀 Deploy stable | ||
if: ${{ github.ref == 'refs/tags/stable' || (github.event_name == 'release' && !github.event.release.prerelease) }} | ||
uses: softprops/action-gh-release@v2 | ||
|
@@ -544,6 +561,7 @@ jobs: | |
linwood-butterfly-macos.dmg | ||
linwood-butterfly-android.apk | ||
linwood-butterfly-ios.ipa | ||
checksums.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: 🚀 Deploy nightly | ||
|
@@ -568,6 +586,7 @@ jobs: | |
linwood-butterfly-android-arm64.apk | ||
linwood-butterfly-android-x86_64.apk | ||
linwood-butterfly-ios.ipa | ||
checksums.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* Add checksums to release assets ([#753](httpps://github.com/LinwoodDev/Butterfly/issues/753)) | ||
|
||
Read more here: https://linwood.dev/butterfly/2.2.2-rc.1 |