Skip to content

Commit

Permalink
Add Option to Configure in Deployment Environments (#67)
Browse files Browse the repository at this point in the history
# Add Option to Configure in Deployment Environments

## ⚙️ Release Notes 
- Add Option to Configure in Deployment Environments


### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
PSchmiedmayer authored May 16, 2024
1 parent 8296615 commit 40eadb0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/firebase-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ on:
required: false
type: string
default: ''
environment:
description: 'GitHub deployment environment to optionally adjust access to variables and secrets with additional protection rules: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment'
required: false
type: string
default: ''
secrets:
GOOGLE_APPLICATION_CREDENTIALS_BASE64:
description: 'The Base64 version of the private key JSON file for the service account. You can lean more about how to generate the JSON at https://cloud.google.com/iam/docs/service-accounts-create. The service account must have the minimally required permissions documented at https://firebase.google.com/docs/projects/iam/permissions.'
Expand All @@ -38,7 +43,12 @@ jobs:
defaults:
run:
working-directory: ${{ inputs.path }}
environment: ${{ inputs.environment }}
steps:
- name: Check environment
run: |
echo "env.selfhosted: ${{ env.selfhosted }}"
echo "environment: ${{ inputs.environment }}"
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/xcodebuild-or-fastlane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ on:
required: false
type: string
default: ''
environment:
description: 'GitHub deployment environment to optionally adjust access to variables and secrets with additional protection rules: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment'
required: false
type: string
default: ''
setupsigning:
description: 'Setup the keychain to include Apple certificate and provisioning profile'
required: false
Expand Down Expand Up @@ -150,6 +155,7 @@ jobs:
defaults:
run:
working-directory: ${{ inputs.path }}
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -164,6 +170,7 @@ jobs:
xcodebuild -version
swift --version
echo "env.selfhosted: ${{ env.selfhosted }}"
echo "environment: ${{ inputs.environment }}"
- name: Install xcpretty
if: ${{ !env.selfhosted && inputs.scheme != '' }}
run: gem install xcpretty
Expand Down

0 comments on commit 40eadb0

Please sign in to comment.