Skip to content

Commit

Permalink
removed version code and version name update
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Oct 24, 2024
1 parent 5d419ea commit 321520f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ jobs:
- name: Decode Keystore
run: echo "${{ secrets.MYAPP_RELEASE_STORE_FILE_BASE64 }}" | base64 -d > $GITHUB_WORKSPACE/android/app/fotos-upload-key.jks

- name: Update Version Code and Name
run: |
latest_version=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r .tag_name)
new_version_code=$(grep 'versionCode' android/app/build.gradle | sed 's/[^0-9]*//g' | awk '{print $1 + 1}')
sed -i "s/versionCode [0-9]*/versionCode ${new_version_code}/" android/app/build.gradle
sed -i "s/versionName \".*\"/versionName \"${latest_version}\"/" android/app/build.gradle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build Android Bundle
run: |
cd android
Expand Down

0 comments on commit 321520f

Please sign in to comment.