Skip to content

Commit

Permalink
Merge branch 'main' into launchpad/hotwax#63
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Dec 13, 2023
2 parents a1a1eb1 + 8dd307b commit d9efa47
Show file tree
Hide file tree
Showing 9 changed files with 472 additions and 54 deletions.
6 changes: 3 additions & 3 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"projects": {
"dev": "hotwax-digital-commerce",
"default": "digital-commerce-71eb8",
"default": "hotwax-digital-commerce",
"production": "digital-commerce-71eb8"
},
"targets": {
"digital-commerce-71eb8": {
"hosting": {
"hotwax-launchpad": [
"prod": [
"hotwax-launchpad"
]
}
},
"hotwax-digital-commerce": {
"hosting": {
"hotwax-launchpad-dev": [
"dev": [
"hotwax-launchpad-dev"
]
}
Expand Down
27 changes: 7 additions & 20 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,10 @@ name: Deploy to Firebase Hosting on merge
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Generate .env file
run: cp .env.example .env
- name: Build
run: npm run build
- name: Install Firebase
run: npm install -g firebase-tools
- name: Set Firebase project
run: firebase use default --token "$HOTWAX_PUBLIC_SECRET"
env:
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
- name: Deploy
run: firebase deploy --token "$HOTWAX_PUBLIC_SECRET" -m "Deploying via GitHub actions" --only hosting:hotwax-launchpad
env:
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
call-workflow-in-another-repo:
uses: hotwax/dxp-components/.github/workflows/common-firebase-hosting-merge.yml@main
with:
config-path: .github/labeler.yml
secrets:
envPAT: ${{ secrets.envPAT }}
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
4 changes: 2 additions & 2 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"hosting": [
{
"target": "hotwax-launchpad",
"target": "prod",
"public": "dist",
"ignore": [
"firebase.json",
Expand All @@ -15,7 +15,7 @@

},
{
"target": "hotwax-launchpad-dev",
"target": "dev",
"public": "dist",
"ignore": [
"firebase.json",
Expand Down
Loading

0 comments on commit d9efa47

Please sign in to comment.