mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
Increment build number only for GH release
This commit is contained in:
parent
798c0a85f9
commit
aa9da48583
1 changed files with 3 additions and 0 deletions
3
.github/workflows/create_release.yml
vendored
3
.github/workflows/create_release.yml
vendored
|
@ -79,7 +79,10 @@ jobs:
|
|||
echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH
|
||||
cp $FIREBASE_OPTIONS_PATH ./lib
|
||||
|
||||
# This step makes sense when Github release is enabled because this release increments the build number.
|
||||
# Therefore here we have to increment it as well to build an apk with the same build number.
|
||||
- name: Increment build number & replace version number
|
||||
if: ${{ inputs.github-release }}
|
||||
run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1."${{ github.event.inputs.version }}".$3.($4+1)/e' pubspec.yaml
|
||||
|
||||
- name: Install Flutter
|
||||
|
|
Loading…
Reference in a new issue