|
5 | 5 | using: 'composite' |
6 | 6 |
|
7 | 7 | steps: |
8 | | - - name: Set up JDK |
9 | | - uses: actions/setup-java@v3 |
10 | | - with: |
11 | | - distribution: 'temurin' |
12 | | - java-version: 17 |
13 | | - |
14 | | - - name: Set up Ruby |
15 | | - uses: ruby/setup-ruby@v1 |
16 | | - with: |
17 | | - ruby-version: '2.7' |
18 | | - |
19 | | - - name: Install Fastlane |
20 | | - run: gem install fastlane |
| 8 | + - name: Retrieve the secrets and decode it to a file |
| 9 | + run: | |
| 10 | + echo $UPLOAD_KEYSTORE_BASE64 | base64 --decode > android/keystore/upload.keystore |
| 11 | + echo $PLAY_STORE_CREDENTIALS_BASE64 | base64 --decode > android/fastlane/play-store-credentials.json |
| 12 | + mv android/keystore/upload.keystore ${{ github.workspace }}/artifacts/android/upload.keystore |
| 13 | + mv android/fastlane/play-store-credentials.json ${{ github.workspace }}/artifacts/android/play-store-credentials.json |
21 | 14 | shell: bash |
22 | 15 |
|
23 | | - - name: Setup Node |
24 | | - uses: actions/setup-node@v3 |
25 | | - with: |
26 | | - node-version-file: .nvmrc |
27 | | - |
28 | | - - name: Build Android Library with Fastlane |
29 | | - run: cd android && fastlane android local |
30 | | - shell: bash |
31 | | - |
32 | | - - name: Copy Android Library to Shared Directory |
33 | | - run: mkdir -p ${{ github.workspace }}/artifacts/android && cp ./artifacts/app-production-debug.apk ${{ github.workspace }}/artifacts/android/app-production-debug.apk |
34 | | - shell: bash |
| 16 | + # - name: Set up JDK |
| 17 | + # uses: actions/setup-java@v3 |
| 18 | + # with: |
| 19 | + # distribution: 'temurin' |
| 20 | + # java-version: 17 |
| 21 | + |
| 22 | + # - name: Set up Ruby |
| 23 | + # uses: ruby/setup-ruby@v1 |
| 24 | + # with: |
| 25 | + # ruby-version: '2.7' |
| 26 | + |
| 27 | + # - name: Install Fastlane |
| 28 | + # run: gem install fastlane |
| 29 | + # shell: bash |
| 30 | + |
| 31 | + # - name: Setup Node |
| 32 | + # uses: actions/setup-node@v3 |
| 33 | + # with: |
| 34 | + # node-version-file: .nvmrc |
| 35 | + |
| 36 | + # - name: Build Android Library with Fastlane |
| 37 | + # run: cd android && fastlane android local |
| 38 | + # shell: bash |
| 39 | + # env: |
| 40 | + # FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} |
| 41 | + # ANDROID_KEYSTORE_PATH: ${{ env.ANDROID_KEYSTORE_PATH }} |
| 42 | + # ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} |
| 43 | + # ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }} |
| 44 | + # ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} |
| 45 | + |
| 46 | + # - name: Copy Android Library to Shared Directory |
| 47 | + # run: | |
| 48 | + # mkdir -p ${{ github.workspace }}/artifacts/android |
| 49 | + # cp ./artifacts/app-production-debug.apk ${{ github.workspace }}/artifacts/android/app-production-debug.apk |
| 50 | + # shell: bash |
35 | 51 |
|
36 | 52 | - name: Upload apk to artifact |
37 | 53 | uses: actions/upload-artifact@v4 |
|
0 commit comments