diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5b483d1..2e1667a 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -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