|
33 | 33 | mkdir -p android/keystores |
34 | 34 | echo "${{ secrets.KEYSTORE_PROPERTIES_64 }}" | base64 -d > android/keystores/release.keystore.properties |
35 | 35 | echo "${{ secrets.JKS_64 }}" | base64 -d > android/app/application-amicale.jks |
36 | | - - name: build |
| 36 | + - name: build APK |
37 | 37 | run: npm run apk |
38 | | - - name: Upload to release |
| 38 | + - name: Upload APK to release |
39 | 39 | uses: actions/upload-release-asset@v1 |
40 | 40 | env: |
41 | 41 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
44 | 44 | asset_path: android/app/build/outputs/apk/release/app-release.apk |
45 | 45 | asset_name: campus-${{steps.tag.outputs.tag}}.apk |
46 | 46 | asset_content_type: application/vnd.android.package-archive |
| 47 | + - name: build AAB |
| 48 | + run: npm run bundle |
| 49 | + - name: Upload AAB to Google Play |
| 50 | + uses: r0adkll/upload-google-play@v1 |
| 51 | + with: |
| 52 | + serviceAccountJsonPlainText: ${{ secrets.SERVICE }} |
| 53 | + packageName: fr.amicaleinsat.application |
| 54 | + releaseFiles: android/app/build/outputs/bundle/release/app-release.aab |
| 55 | + track: internal |
| 56 | + releaseName: ${{steps.tag.outputs.tag}} |
| 57 | + status: completed |
| 58 | + |
| 59 | + build-ios: |
| 60 | + needs: build-android |
| 61 | + runs-on: macos-latest |
| 62 | + environment: build-ios |
| 63 | + |
| 64 | + steps: |
| 65 | + - uses: actions/checkout@v3 |
| 66 | + - uses: actions/setup-node@v3 |
| 67 | + with: |
| 68 | + node-version: 24 |
| 69 | + - name: Ensure latest XCode is used |
| 70 | + uses: maxim-lobanov/setup-xcode@v1 |
| 71 | + with: |
| 72 | + xcode-version: latest-stable |
| 73 | + |
| 74 | + - name: Get tag |
| 75 | + id: tag |
| 76 | + run: echo "::set-output name=tag::`git describe --tags`" |
| 77 | + |
| 78 | + - name: Install dependencies |
| 79 | + run: npm ci |
| 80 | + |
| 81 | + - uses: szenius/set-timezone@v1.0 |
| 82 | + with: |
| 83 | + timezoneLinux: 'Europe/Paris' |
| 84 | + timezoneMacos: 'Europe/Paris' |
| 85 | + |
| 86 | + - name: Install pod dependencies |
| 87 | + run: | |
| 88 | + cd ios && pod install |
| 89 | +
|
| 90 | + - name: Build IOS App |
| 91 | + uses: yukiarrr/ios-build-action@v1.11.0 |
| 92 | + with: |
| 93 | + project-path: ios/Campus.xcodeproj |
| 94 | + p12-base64: ${{ secrets.IOS_P12_BASE64 }} |
| 95 | + mobileprovision-base64: ${{ secrets.IOS_MOBILE_PROVISION_BASE64 }} |
| 96 | + code-signing-identity: 'iPhone Distribution' |
| 97 | + team-id: ${{ secrets.IOS_TEAM_ID }} |
| 98 | + certificate-password: ${{ secrets.IOS_CERTIFICATE_PASSWORD }} |
| 99 | + workspace-path: ios/Campus.xcworkspace |
| 100 | + scheme: Campus |
| 101 | + |
| 102 | + - name: 'Upload app to TestFlight' |
| 103 | + uses: apple-actions/upload-testflight-build@v1 |
| 104 | + with: |
| 105 | + app-path: 'output.ipa' |
| 106 | + issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} |
| 107 | + api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} |
| 108 | + api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} |
0 commit comments