Skip to content

Commit

Permalink
fix: Use correct version code & name (ReVanced#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko authored Jan 22, 2024
1 parent bea99bb commit d933997
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Bump pubspec version
run: |
IFS='.' read -r -a nums <<< "${RELEASE_VERSION/-dev/}.0"
VERSION=$(echo "${RELEASE_VERSION}" | sed 's/v//')
IFS='.' read -r -a nums <<< "${VERSION/-dev/}.0"
VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3]))
sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml
Expand All @@ -54,11 +54,6 @@ jobs:
run: dart run build_runner build --delete-conflicting-outputs

- name: Build with Flutter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
run: flutter build apk

- name: Sign APK
Expand All @@ -72,7 +67,7 @@ jobs:
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}

- name: Rename APK
run: mv ${{steps.sign_apk.outputs.signedFile}} revanced-manager-v${{ env.RELEASE_VERSION }}.apk
run: mv ${{steps.sign_apk.outputs.signedFile}} revanced-manager-${{ env.RELEASE_VERSION }}.apk

- name: Publish release APK
env:
Expand Down

0 comments on commit d933997

Please sign in to comment.