Skip to content

Commit

Permalink
Update deploy-apps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder authored Jan 27, 2024
1 parent 140593f commit 4a96ecc
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/deploy-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,29 @@ jobs:
run: |
ls -la
echo "${{ secrets.STUDYU_ANDROID_KEYSTORE }}" > keystore.jks.asc
gpg -d --passphrase "${{ secrets.STUDYU_ANDROID_KEYSTORE_PASSWORD }}" --batch keystore.jks.asc > app/android/app/studyu-keystore.jks
echo "${{ secrets.STUDYU_KEY_PROPERTIES}}" > app/android/key.properties
gpg -d --passphrase "${{ secrets.STUDYU_ANDROID_KEYSTORE_PASSWORD }}" --batch keystore.jks.asc > android/app/studyu-keystore.jks
echo "${{ secrets.STUDYU_KEY_PROPERTIES}}" > android/key.properties
ls -la
ls -la app/android/
cat app/android/key.properties
#- name: Restore StudyU app bundle cache
# id: cache-studyu-app-bundle-restore
# uses: actions/cache/restore@v4
# with:
# path: app/build/app/outputs/bundle/release/app-release.aab
# cat app/android/key.properties
cd android/
bundle install
bundle exec fastlane actions
working-directory: ./app
- name: Restore StudyU app bundle cache
id: cache-studyu-app-bundle-restore
uses: actions/cache/restore@v4
with:
path: app/build/app/outputs/bundle/release/app-release.aab
# todo key also needs to involve decrypted files
# key: flutter_v${{ env.flutter_version_hash }}-${{ hashFiles('**/pubspec.lock') }}-${{ runner.os }}
# restore-keys: |
# flutter_v${{ env.flutter_version_hash }}-${{ hashFiles('**/pubspec.lock') }}-
key: flutter_v${{ env.flutter_version_hash }}-${{ hashFiles('**/pubspec.lock') }}-${{ runner.os }}
restore-keys: |
flutter_v${{ env.flutter_version_hash }}-${{ hashFiles('**/pubspec.lock') }}-
- name: Build StudyU app bundle
if: steps.cache-studyu-app-bundle-restore.outputs.cache-hit != 'true'
# todo add --release
run: |
flutter build appbundle --build-number ${{ github.run_number }}
flutter build appbundle --release --build-number ${{ github.run_number }}
working-directory: ./app
- name: Cache StudyU app bundle
id: cache-studyu-app-bundle-save
Expand Down

0 comments on commit 4a96ecc

Please sign in to comment.