Manual build #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manual build | |
on: | |
workflow_dispatch: # Enable manual run only | |
jobs: | |
build: | |
# This job will run on the tramline macos runners | |
runs-on: tramline-macos-sonoma-md | |
defaults: | |
run: | |
working-directory: mobile | |
steps: | |
# Setup Java environment in order to build the Android app. | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
# Setup the flutter environment. | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.13.4' | |
# Fetch sub modules | |
- run: git submodule update --init --recursive | |
# Get flutter dependencies. | |
- run: flutter pub get | |
- name: Setup keys | |
uses: timheuer/base64-to-file@v1 | |
with: | |
fileName: 'keystore/ente_photos_key.jks' | |
encodedString: MIIKtgIBAzCCCmAGCSqGSIb3DQEHAaCCClEEggpNMIIKSTCCBbAGCSqGSIb3DQEHAaCCBaEEggWdMIIFmTCCBZUGCyqGSIb3DQEMCgECoIIFQDCCBTwwZgYJKoZIhvcNAQUNMFkwOAYJKoZIhvcNAQUMMCsEFK79gn7xhYJEitsqUmz0xz+JLc4SAgInEAIBIDAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQTQxWP6PdoZlODYFTia9A+QSCBNC6mC1WhOS+OLli5HrFafjF3Escautix5cx0JcVf2LEoRaZR/DP+2e1seOYjFnXT5XQVwwdHF4KNFExYu2ZEZZ7QPuzcCPcfkDL/CWkrtjgF1Sc5+AOuGOkRaa59sk8fF21oXY53q+oYP4VWOzaXAWkyn1XBBhgyYmo++oKTtwO3MUmN0TvaP01P3Y7VjM5tyAbWLiy6Gas4008S0FK17dQcE+Vub5I+WOQV/V0zp5I3V08aaIXXa8igseKghQ6tCv3AIBrrEaKWwT9HBLG5CB29FasAkWWU+k5LBkFuMpIX/ZapiWWA8K78Ja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NP0LsQ0Mqd+M8yui99r+89gFH6FO7gDYOnXJ9WW6gqY7hvN0Oarvvs/RcfUO1Fw0aPrrrX1SCVewEiftfWp/laL98CaHdzOzfX/bSJ5RV2YjXD8FA2rllG21yXK2f2+PWXoinuyIcm1Zgkvfstu9A7jMC9j8fdzG6BsIHjiZ7pD2U6GYm66r+HSViiST3Mu0a9TF1wiuCRErMmSsMBia9fCdjO1rmjwRq0bvVd47C8wWVpkbGA4p2f7LU1ZkvzRMcTctD5CFwVx+2p94wXguc4BLiO0jHpOMXB4JAM52p2BckrRVAMQ3s+pMw33hyBT39F6pFTnMlXDkNjufcH2+vVFTRi1DH3MYG4AX28POmiWqCWpa4kW1aBRsBW0DiHd8DiFO26mp3gNUSfy1BFocH1hkXMO3ewBnGDgKwz9kxv3hA1vE61SaGlWqLL/ZT83nLvUopEd+rrQmvBsvXc0NpWX/FQcsp4lh41Y+BeMVgIg5GRv0DWq8UKcGpTUxy1/do9wRhCmJURZGBdSCcRIpBKt+IPvNQ+WO2TVPFi8nm0xuYv+rU2pa21tqrKEmh46flsr8sZt3J9UtSpZJCI0FQM0jA6XPzoUxQtgQRR09wr0Hrirgi5FjFJQHzvZO6Uhr45JQ5pVmg8uIZHh2SL6JZKRvHE4mkGVLBbRMQJ1/ef4MVFAxa7jtwGqI7OaGfTiAufJmfbhLk8htJKgk+n5JbnW0YhLSvTrDs8ezUDC9vzxb+Xh3dqamAMj22ObH19kB+4+KZCU1soyQ3CJro/s8+QqefD8IN1WUqgldMBOt/Ktl5eNhm3mukJ7q6aiICXalME0wMTANBglghkgBZQMEAgEFAAQgrEhQ5Tib5/gpn8C1+/SGPptGo91MKNI1JpTCd7v0ob0EFLl4+AC0xvqG7eWPdZ3Af5B7Cw1ZAgInEA== | |
# Build independent apk. | |
- name: Build | |
run: | | |
file keystore/ente_photos_key.jks | |
flutter build apk --release --flavor independent && mv build/app/outputs/flutter-apk/app-independent-release.apk build/app/outputs/flutter-apk/ente.apk | |
env: | |
SIGNING_KEY_PATH: '/home/runner/work/_temp/keystore/ente_photos_key.jks' | |
SIGNING_KEY_ALIAS: entekey | |
SIGNING_KEY_PASSWORD: foobar | |
SIGNING_STORE_PASSWORD: foobar | |
- name: Checksum | |
run: sha256sum build/app/outputs/flutter-apk/app-independent-release.apk > build/app/outputs/flutter-apk/sha256sum | |
# Upload generated apk to the artifacts. | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: release-apk | |
path: build/app/outputs/flutter-apk/app-independent-release.apk | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: release-checksum | |
path: build/app/outputs/flutter-apk/sha256sum | |
# Create a pre-release | |
# - uses: ncipollo/[email protected] | |
# with: | |
# artifacts: "build/app/outputs/flutter-apk/ente.apk,build/app/outputs/flutter-apk/sha256sum" | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# prerelease: true |