Skip to content

Commit

Permalink
Merge pull request #165 from Gamhub-io/release_prep/1.6
Browse files Browse the repository at this point in the history
Release prep/1.6 - mainly pipelines actually
  • Loading branch information
bricefriha authored Jan 23, 2025
2 parents 7ff5e21 + 62079fb commit cde0244
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cd-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
package-name:
required: true
type: string
generation:
required: true
type: string
secrets:
keystore-password:
required: true
Expand Down Expand Up @@ -88,7 +91,7 @@ jobs:
with:
csproj: ${{ inputs.project-file }}
version: ${{ github.run_number }} # to keep value unique
displayVersion: ${{ inputs.build-version }}.${{ github.run_number }}
displayVersion: ${{ inputs.build-version }}.${{ github.run_number }} ${{ inputs.generation }}
printFile: true # optional
- name: Setup Keystore File
run: |
Expand All @@ -107,6 +110,7 @@ jobs:
packageName: ${{ inputs.package-name }}
releaseFiles: ${{ github.workspace }}/${{ inputs.project-folder }}/bin/${{ inputs.build-config }}/${{ inputs.dotnet-version-target }}-android/${{ inputs.package-name }}-Signed.aab
track: internal
changesNotSentForReview: true
- uses: r0adkll/[email protected]
name: Upload Android Artifact to Play Console production
if: ${{contains(inputs.deploy-type, 'prod')}}
Expand All @@ -115,3 +119,4 @@ jobs:
packageName: ${{ inputs.package-name }}
releaseFiles: ${{ github.workspace }}\${{ inputs.project-folder }}\bin\${{ inputs.build-config }}\${{ inputs.dotnet-version-target }}-android\${{ inputs.package-name }}-Signed.aab
track: production
changesNotSentForReview: true
1 change: 1 addition & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
build-config: 'Release'
build-version: ${{ needs.setup.outputs.buildVersion }}
deploy-type: ${{ needs.setup.outputs.deploy-type }}
generation: 'Atlas (BETA)'
package-name: 'com.bricefriha.aresgaming'
secrets:
keystore: ${{ secrets.PLAY_KEYSTORE }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
project-file: ${{ needs.setup.outputs.csprojToBuild }}
project-folder: ${{ needs.setup.outputs.projectFolder }}
build-config: 'Release'
generation: 'Atlas'
build-version: ${{ needs.setup.outputs.buildVersion }}
deploy-type: ${{ needs.setup.outputs.deploy-type }}
package-name: 'com.bricefriha.aresgaming'
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Dev Deployment Build

on:
workflow_dispatch:
push:
branches: ['master']
paths-ignore:
- '**.md'
- '**/*.gitignore'
- '**/*.gitattributes'
- '**/*.yml'
env:
BUILD_VERSION: '1.5'
DOTNET_VERSION: 9.0.x
XCODE_VERSION: 16.2
DOTNET_VERSION_TARGETS: net9.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 }}
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: 'com.bricefriha.aresgaming'
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 }}
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: 'com.bricefriha.aresgaming'
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 }}
# Inspired by https://thewissen.io/making-maui-cd-pipeline/

0 comments on commit cde0244

Please sign in to comment.