Skip to content

Commit

Permalink
Add checksums to release assets, closes #753
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Oct 28, 2024
1 parent ecd305b commit f18fe8f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,4 @@ jobs:
Pre-release version ${{ env.BUTTERFLY_VERSION }} released!
Download it here: https://butterfly.linwood.dev/downloads
Please note that this is a pre-release version and is not intended for production use.
Read more about it here: https://butterfly.linwood.dev/nightly
Read more about it here: https://butterfly.linwood.dev/community/nightly
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Version | Supported | |
| --------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| 2.2.1-dev | :warning: | [Docs](https://butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.2.1-rc.1) |
| 2.2.2-dev | :warning: | [Docs](https://butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.2.2-rc.0) |
| 2.2.1 | :white_check_mark: | [Docs](https://butterfly.linwood.dev/docs/2.2/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.2.1) |
| 2.1.1 | :x: | [Docs](https://butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.1.1) |
| 2.0.3 | :x: | [Docs](https://butterfly.linwood.dev/docs/2.0/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.3) |
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1626,10 +1626,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: e1d0cc62e65dc2561f5071fcbccecf58ff20c344f8f3dc7d4922df372a11df1f
sha256: "10169d3934549017f0ae278ccb07f828f9d6ea21573bab0fb77b0e1ef0fce454"
url: "https://pub.dev"
source: hosted
version: "5.7.1"
version: "5.7.2"
win32_registry:
dependency: transitive
description:
Expand Down
3 changes: 3 additions & 0 deletions metadata/en-US/changelogs/121.txt
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

0 comments on commit f18fe8f

Please sign in to comment.