Skip to content

Commit

Permalink
run fastlane for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
thebino committed Aug 17, 2023
1 parent 9f006f4 commit 1e016cc
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/continuous-delivery-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
deployment:
needs: [ unit_tests, android_tests ]
if: github.ref == 'refs/heads/development'
runs-on: ubuntu-latest
runs-on: macos-latest
timeout-minutes: 30

steps:
Expand Down Expand Up @@ -289,20 +289,14 @@ jobs:
- name: Set versionCode to git count
run: |
export versionCode=$(git rev-list --first-parent --count HEAD)
sed -i "s/versionCode = 999/versionCode = $versionCode/g" app/build.gradle.kts
sed -i -d "s/versionCode = 999/versionCode = $versionCode/g" app/build.gradle.kts
- name: Build release bundle
run: |
./gradlew --console=plain -PreleaseKeystore=${{ steps.decode_keystore.outputs.filePath }} -PreleaseStorePassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }} -PreleaseKeyAlias=${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }} -PreleaseKeyPassword=${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} app:bundle
- name: Set up ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true

- name: Publish release bundle
run: bundle exec fastlane android deploy
run: fastlane android deploy
env:
KEYSTORE_FILE: ${{ steps.decode_keystore.outputs.filePath }}
STORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
Expand Down

0 comments on commit 1e016cc

Please sign in to comment.