v 1.8.01 (#417) #52
This file contains hidden or 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: Prod Deployment Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ['main'] | |
| env: | |
| BUILD_VERSION: '1.6' | |
| DOTNET_VERSION: 10.0.100 | |
| XCODE_VERSION: 26.5 | |
| DOTNET_VERSION_TARGETS: net10.0 | |
| CSPROJ_TO_BUILD: ./App/GamHubApp.csproj | |
| PROJECT_FOLDER: App | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| buildVersion: ${{ env.BUILD_VERSION }} | |
| dotnetVersion: ${{ env.DOTNET_VERSION }} | |
| xcodeVersion: ${{ env.XCODE_VERSION }} | |
| dotnetVersionTargets: ${{ env.DOTNET_VERSION_TARGETS }} | |
| csprojToBuild: ${{ env.CSPROJ_TO_BUILD }} | |
| projectFolder: ${{ env.PROJECT_FOLDER }} | |
| packageName: 'com.bricefriha.aresgaming' | |
| deploy-type: 'prod' | |
| steps: | |
| - run: echo "Exposing env setup, because they can't be passed to nested workflows." | |
| # | |
| build-ios: | |
| needs: setup | |
| uses: ./.github/workflows/cd-ios.yml | |
| with: | |
| dotnet-version: ${{ needs.setup.outputs.dotnetVersion }} | |
| dotnet-version-target: ${{ needs.setup.outputs.dotnetVersionTargets }} | |
| xcode-version: ${{ needs.setup.outputs.xcodeVersion }} | |
| project-file: ${{ needs.setup.outputs.csprojToBuild }} | |
| project-folder: ${{ needs.setup.outputs.projectFolder }} | |
| build-config: 'Release' | |
| package-name: ${{ needs.setup.outputs.packageName }} | |
| deploy-type: ${{ needs.setup.outputs.deploy-type }} | |
| build-version: ${{ needs.setup.outputs.buildVersion }} | |
| secrets: | |
| p12-cert: ${{ secrets.CERTIFICATES_P12 }} | |
| p12-cert-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | |
| appstore-issuer: ${{ secrets.APPSTORE_ISSUER_ID }} | |
| appstore-keyid: ${{ secrets.APPSTORE_KEY_ID }} | |
| appstore-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} | |
| discord_client_id: ${{ secrets.DISCORD_CLIENT_ID }} | |
| api_host: ${{ secrets.API_HOST }} | |
| monitoring_key: ${{ secrets.MONITORING_KEY }} | |
| google_services_plist: ${{ secrets.GOOGLE_SERVICES_PLIST }} | |
| revenueCatApiKey_iOS: ${{ secrets.revenueCatApiKey_iOS }} | |
| sha_salt: ${{ secrets.SHA_SALT }} | |
| build-android: | |
| needs: setup | |
| uses: ./.github/workflows/cd-android.yml | |
| with: | |
| dotnet-version: ${{ needs.setup.outputs.dotnetVersion }} | |
| dotnet-version-target: ${{ needs.setup.outputs.dotnetVersionTargets }} | |
| project-file: ${{ needs.setup.outputs.csprojToBuild }} | |
| project-folder: ${{ needs.setup.outputs.projectFolder }} | |
| build-config: 'Release' | |
| build-version: ${{ needs.setup.outputs.buildVersion }} | |
| deploy-type: ${{ needs.setup.outputs.deploy-type }} | |
| generation: 'Atlas' | |
| package-name: ${{ needs.setup.outputs.packageName }} | |
| secrets: | |
| keystore: ${{ secrets.PLAY_KEYSTORE }} | |
| keystore-alias: ${{ secrets.PLAY_KEYSTORE_ALIAS }} | |
| keystore-password: ${{ secrets.PLAY_KEYSTORE_PASS }} | |
| playstore-service-account: ${{ secrets.PLAYSTORE_SERVICE_ACC }} | |
| discord_client_id: ${{ secrets.DISCORD_CLIENT_ID }} | |
| api_host: ${{ secrets.API_HOST }} | |
| monitoring_key: ${{ secrets.MONITORING_KEY }} | |
| google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
| revenueCatApiKey_Android: ${{ secrets.revenueCatApiKey_Android }} | |
| sha_salt: ${{ secrets.SHA_SALT }} | |
| # Inspired by https://thewissen.io/making-maui-cd-pipeline/ | |