Skip to content

Commit

Permalink
Use correct changelog number for releases - 1.0.16 πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonp2412 committed May 29, 2024
1 parent 716fe17 commit 2c91420
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
13 changes: 6 additions & 7 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

set -ex

if [[ "$*" != "-n" ]]; then
./screenshots.sh "phoneScreenshots"
./screenshots.sh "sevenInchScreenshots"
./screenshots.sh "tenInchScreenshots"
fi
./screenshots.sh "phoneScreenshots"
./screenshots.sh "sevenInchScreenshots"
./screenshots.sh "tenInchScreenshots"

line=$(yq -r .version pubspec.yaml)
build_number=$(cut -d '+' -f 2 <<< "$line")
Expand All @@ -23,15 +21,16 @@ yq -yi ".version |= \"$new_flutter_version\"" pubspec.yaml
rest=$(git log -1 --pretty=%B | tail -n +2)
git add pubspec.yaml
last_commits=$(git log --pretty=format:"%s" @{u}..HEAD | awk '{print "- "$0}')
echo "$last_commits" > "fastlane/metadata/android/en-US/changelogs/$new_build_number.txt"
changelog_number=$((new_build_number * 10 + 3))
echo "$last_commits" > "fastlane/metadata/android/en-US/changelogs/$changelog_number.txt"
git add fastlane/metadata

if [[ -n "$(git ls-files --others --exclude-standard)" ]]; then
echo "There are unstaged changes in the repository:"
git --no-pager diff
git restore --staged pubspec.yaml fastlane/metadata
git restore pubspec.yaml fastlane/metadata
rm "fastlane/metadata/android/en-US/changelogs/$new_build_number.txt"
rm "fastlane/metadata/android/en-US/changelogs/$changelog_number.txt"
exit 1
fi

Expand Down
6 changes: 6 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/173.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Use correct changelog number for releases
- Merge branch 'main' of github.com:brandonp2412/FitBook
- Fix serving size calculations - 1.0.15 πŸš€
- Fix per 100g comment for protein
- Change editing entries
- Move serving size above hidden fields
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fit_book
description: Track your calories - Completely offline!
publish_to: none
version: 1.0.15+16
version: 1.0.16+17
environment:
sdk: '>=3.3.3 <4.0.0'
dependencies:
Expand Down

0 comments on commit 2c91420

Please sign in to comment.