-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bad604
commit c270f5d
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Dev Deployment Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "develop" ] | ||
paths-ignore: | ||
- "**.md" | ||
- '**/*.gitignore' | ||
- '**/*.gitattributes' | ||
- '**/*.yml' | ||
pull_request: | ||
branches: [ "develop" ] | ||
env: | ||
BUILD_VERSION: '2.0' | ||
DOTNET_VERSION: 9.0.x | ||
XCODE_VERSION: 14.3 | ||
DOTNET_VERSION_TARGETS: net9.0 | ||
CSPROJ_TO_BUILD: App/GamHubApp.csproj | ||
PROJECT_FOLDER: GamHubApp | ||
jobs: | ||
vars: | ||
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 }} | ||
steps: | ||
- run: echo "Exposing env vars, because they can't be passed to nested workflows." | ||
build-ios: | ||
needs: vars | ||
uses: ./.github/workflows/cd-ios.yml | ||
with: | ||
dotnet-version: ${{ needs.vars.outputs.dotnetVersion }} | ||
dotnet-version-target: ${{ needs.vars.outputs.dotnetVersionTargets }} | ||
xcode-version: ${{ needs.vars.outputs.xcodeVersion }} | ||
project-file: ${{ needs.vars.outputs.csprojToBuild }} | ||
project-folder: ${{ needs.vars.outputs.projectFolder }} | ||
build-config: 'Release' | ||
build-version: ${{ needs.vars.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 }} | ||
env: | ||
deploy-type: 'dev' | ||
build-android: | ||
needs: vars | ||
uses: ./.github/workflows/cd-android.yml | ||
with: | ||
dotnet-version: ${{ needs.vars.outputs.dotnetVersion }} | ||
dotnet-version-target: ${{ needs.vars.outputs.dotnetVersionTargets }} | ||
project-file: ${{ needs.vars.outputs.csprojToBuild }} | ||
project-folder: ${{ needs.vars.outputs.projectFolder }} | ||
build-config: 'Release' | ||
build-version: ${{ needs.vars.outputs.buildVersion }} | ||
secrets: | ||
keystore: ${{ secrets.PLAY_KEYSTORE }} | ||
keystore-alias: ${{ secrets.PLAY_KEYSTORE_ALIAS }} | ||
keystore-password: ${{ secrets.PLAY_KEYSTORE_PASS }} | ||
playstore-service-account: ${{ secrets.PLAYSTORE_SERVICE_ACC }} | ||
env: | ||
deploy-type: 'dev' | ||
|
||
# Inspired by https://thewissen.io/making-maui-cd-pipeline/ | ||
|