Skip to content

Commit

Permalink
Update CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
BramDC3 committed Oct 8, 2024
1 parent 66eb2c7 commit 5f4ec00
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/build-android/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ inputs:
google_services_json:
description: 'Base64 encoded google-services.json'
required: true
env_file:
description: 'Base64 encoded .env file'
required: true
runs:
using: "composite"
steps:
- name: Decode and save .env file
shell: bash
run: echo "${{ inputs.env_file }}" | base64 -d > .env

- name: Decode and save google-services.json
shell: bash
run: echo "${{ inputs.google_services_json }}" | base64 -d > ./android/app/google-services.json
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/default-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
type: debug
google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
env_file: ${{ secrets.ENV_FILE }}

build_ios:
name: Build iOS debug
Expand All @@ -44,6 +45,9 @@ jobs:
- name: Prepare runner
uses: ./.github/actions/prepare-macos-runner

- name: Decode and save .env file
run: echo "${{ secrets.ENV_FILE }}" | base64 -d > .env

- name: Decode and save GoogleServices-Info.plist
run: echo "${{ secrets.GOOGLESERVICE_INFO_PLIST }}" | base64 -d > ./ios/Runner/GoogleService-Info.plist

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
with:
type: release
google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
env_file: ${{ secrets.ENV_FILE }}

- name: Upload build artifact
uses: actions/upload-artifact@v4
Expand All @@ -56,6 +57,9 @@ jobs:
- name: Prepare runner
uses: ./.github/actions/prepare-macos-runner

- name: Decode and save .env file
run: echo "${{ secrets.ENV_FILE }}" | base64 -d > .env

- name: Set `MATCH_PASSWORD` environment variable
run: echo "MATCH_PASSWORD=${{ secrets.MATCH_PASSWORD }}" >> $GITHUB_ENV

Expand Down

0 comments on commit 5f4ec00

Please sign in to comment.