-
Notifications
You must be signed in to change notification settings - Fork 3
ci: add jobs to deploy iOS and Android apps to Firebase #1380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2c51209
ci: add initial deployment workflow
staceybeard ac42e59
ci: combine build and deployment workflows
staceybeard c1f53e9
ci: update artifact path
staceybeard 0017f3d
ci: use multiline string syntax for release notes
staceybeard 40465b6
ci: debug release notes and update deploy-app-setup inputs
staceybeard d93caa6
ci: pause iOS job for testing
staceybeard 8cb886c
ci: debug
staceybeard 1c4a381
Revert "ci: debug"
staceybeard 9f3095d
ci: fix path to apk artifact
staceybeard 44a54b2
ci: add TODO
staceybeard 8889341
ci: fix issue with blank ARTIFACT_NAME by connecting the job output
staceybeard 5d232c0
ci: add iOS deployment job
staceybeard 54f8a28
ci: fix issue with blank ARTIFACT_NAME for iOS
staceybeard 8cee2ed
ci: clean up for PR
staceybeard 489b9cd
ci: remove test code
staceybeard 07b388b
ci: address linting issue
staceybeard fbf10da
fix: add "on commit" to release notes, and adjust comment location
staceybeard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # SPDX-FileCopyrightText: Copyright (C) 2025 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <john.kildea@mcgill.ca> | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| name: Deploy App Setup | ||
| description: Setup before deploying the mobile app to Firebase | ||
|
|
||
| inputs: | ||
| ENVIRONMENT: | ||
| description: 'Environment in which to deploy the app' | ||
| required: true | ||
| GOOGLE_APPLICATION_CREDENTIALS: | ||
| description: 'Contents of the service account file used to access the Firebase project for the given environment' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Prepare Firebase release notes | ||
| # Save release notes as a multiline string: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#multiline-strings | ||
| run: | | ||
| { | ||
| echo 'RELEASE_NOTES<<EOF' | ||
| echo "Build created and deployed by GitHub Actions for environment '$ENVIRONMENT' on $(git log --format=medium -n 1)" | ||
| echo EOF | ||
| } >> "$GITHUB_ENV" | ||
| shell: bash | ||
| env: | ||
| ENVIRONMENT: ${{ inputs.ENVIRONMENT }} | ||
|
|
||
| - name: Load service account used to access Firebase | ||
| run: | | ||
| echo "$GOOGLE_APPLICATION_CREDENTIALS" > service-account.txt | ||
| echo GOOGLE_APPLICATION_CREDENTIALS=service-account.txt >> "$GITHUB_ENV" | ||
| shell: bash | ||
| env: | ||
| GOOGLE_APPLICATION_CREDENTIALS: ${{ inputs.GOOGLE_APPLICATION_CREDENTIALS }} | ||
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
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
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the intention to have the date?
If the full commit is intended maybe "on commit ...`?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The full commit is intended, so yes I can add "on commit".