Skip to content

Commit

Permalink
Update Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Aug 9, 2024
1 parent 30a2b18 commit f07a50b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/beta-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,33 +66,33 @@ jobs:
steps:
- run: |
echo "Injecting Environment Variables In Deployment Workflow: ${{ vars.FIREBASE_PROJECT_ID }}"
buildandtest:
name: Build and Test
needs: determineenvironment
uses: ./.github/workflows/build-and-test.yml
permissions:
contents: read
actions: read
security-events: write
secrets: inherit
iosapptestflightdeployment:
name: iOS App TestFlight Deployment
needs: [determineenvironment, buildandtest, vars]
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
permissions:
contents: read
with:
runsonlabels: '["macOS", "self-hosted"]'
environment: ${{ needs.determineenvironment.outputs.environment }}
googleserviceinfoplistpath: 'PAWS/Supporting Files/GoogleService-Info.plist'
setupsigning: true
setupfirebaseemulator: true
firebaseemulatorimport: ./firebase --project ${{ needs.vars.outputs.FIREBASE_PROJECT_ID }}
fastlanelane: deploy environment:"${{ needs.determineenvironment.outputs.environment }}"
secrets: inherit
# buildandtest:
# name: Build and Test
# needs: determineenvironment
# uses: ./.github/workflows/build-and-test.yml
# permissions:
# contents: read
# actions: read
# security-events: write
# secrets: inherit
# iosapptestflightdeployment:
# name: iOS App TestFlight Deployment
# needs: [determineenvironment, buildandtest, vars]
# uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
# permissions:
# contents: read
# with:
# runsonlabels: '["macOS", "self-hosted"]'
# environment: ${{ needs.determineenvironment.outputs.environment }}
# googleserviceinfoplistpath: 'PAWS/Supporting Files/GoogleService-Info.plist'
# setupsigning: true
# setupfirebaseemulator: true
# firebaseemulatorimport: ./firebase --project ${{ needs.vars.outputs.FIREBASE_PROJECT_ID }}
# fastlanelane: deploy environment:"${{ needs.determineenvironment.outputs.environment }}"
# secrets: inherit
deployfirebase:
name: Deploy Firebase Project
needs: [determineenvironment, vars, iosapptestflightdeployment]
needs: [determineenvironment, vars] # iosapptestflightdeployment
uses: StanfordBDHG/.github/.github/workflows/firebase-deploy.yml@v2
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion PAWS/SharedContext/FeatureFlags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum FeatureFlags {
static let disableFirebase = CommandLine.arguments.contains("--disableFirebase")
#if targetEnvironment(simulator)
/// Defines if the application should connect to the local firebase emulator. Always set to true when using the iOS simulator.
static let useFirebaseEmulator = true
static let useFirebaseEmulator = false
#else
/// Defines if the application should connect to the local firebase emulator. Always set to true when using the iOS simulator.
static let useFirebaseEmulator = CommandLine.arguments.contains("--useFirebaseEmulator")
Expand Down

0 comments on commit f07a50b

Please sign in to comment.