Skip to content

Commit

Permalink
fix: prod alias site
Browse files Browse the repository at this point in the history
  • Loading branch information
e-wai committed Dec 14, 2022
1 parent 47067f3 commit 93fbdfa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/actions/firebase-hosting/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
firebase-project-id:
description: "Firebase project ID, specific to Firebase project so will differ between staging and prod. See .firebaserc for aliases."
required: true
target:
description: "Target in .firebaserc if needed for deploy. See docs for multi-site Firebase hosting."
required: false

runs:
using: "composite"
Expand All @@ -41,3 +44,4 @@ runs:
projectId: "${{ inputs.firebase-project-id }}"
channelId: "${{ inputs.channel-id }}"
entryPoint: ./frontend
target: "${{ inputs.target }}"
1 change: 1 addition & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
firebase-service-account: "${{ secrets.PRODUCTION_FIREBASE_SERVICE_ACCOUNT_FOCUS_ON_NATURE_PROD }}"
firebase-project-id: "${{ secrets.PRODUCTION_FIREBASE_PROJECT_ID }}"
target: "prodalias"
- name: Deploy backend to Heroku
uses: ./.github/actions/heroku-deploy
with:
Expand Down
10 changes: 9 additions & 1 deletion frontend/.firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"default": "focus-on-nature",
"prod": "focus-on-nature-prod"
},
"targets": {},
"targets": {
"prod": {
"hosting": {
"prodalias": [
"focusonnature"
]
}
}
},
"etags": {}
}

0 comments on commit 93fbdfa

Please sign in to comment.