Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 9, 2024
1 parent 649f4bc commit d27453c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- name: Update Build Number
run: |
commit_count=$(git rev-list --count HEAD)
sed -i "s/version: \(.*\)+.*/version: \1+$commit_count/" pubspec.yaml
sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" pubspec.yaml
echo "Build Number: $commit_count"
- name: Decode Keystore File
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- name: Update Build Number
run: |
commit_count=$(git rev-list --count HEAD)
sed -i "s/version: \(.*\)+.*/version: \1+$commit_count/" pubspec.yaml
sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" pubspec.yaml
echo "Build Number: $commit_count"
- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Update Build Number
run: |
commit_count=$(git rev-list --count HEAD)
sed -i '' -e "s/version: \(.*\)+.*/version: \1+$commit_count/" pubspec.yaml
sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" pubspec.yaml
echo "Build Number: $commit_count"
- name: Install Apple Certificate
uses: apple-actions/import-codesign-certs@v1
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.2.9+1707
version: 1.2.9+1715

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down

0 comments on commit d27453c

Please sign in to comment.