diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 00000000..cad1450e --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "community-cookbook-staging" + } +} diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 89195069..b625be62 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -20,7 +20,7 @@ jobs: - name: "Install dependencies" run: bun install - - name: "Deploy target: staging" + - name: "Deploy target: preview" run: bun run generate - uses: untitaker/hyperlink@0.1.32 @@ -31,5 +31,5 @@ jobs: uses: matter-labs/action-hosting-deploy@main with: repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}" - projectId: zksync-docs-staging-5eb09 + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COMMUNITY_COOKBOOK_STAGING }}" + projectId: community-cookbook-staging diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index b8145377..25ca469f 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -22,7 +22,7 @@ jobs: - name: "Install dependencies" run: bun install - - name: "Deploy target: staging" + - name: "Deploy target: production 🚀" run: bun run generate # TODO: ask about below # env: @@ -32,9 +32,9 @@ jobs: - uses: matter-labs/action-hosting-deploy@main with: repoToken: "${{ secrets.GITHUB_TOKEN }}" - firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COMMUNITY_COOKBOOK }}" target: prod - projectId: zksync-docs + projectId: community-cookbook channelId: live # TODO: re-enable once we are closer to production deployment diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 94ad47be..19ef57fa 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -25,6 +25,6 @@ jobs: - uses: matter-labs/action-hosting-deploy@main with: repoToken: "${{ secrets.GITHUB_TOKEN }}" - firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}" - projectId: zksync-docs-staging-5eb09 + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COMMUNITY_COOKBOOK_STAGING }}" + projectId: community-cookbook-staging channelId: live diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..ddb687d0 --- /dev/null +++ b/firebase.json @@ -0,0 +1,10 @@ +{ + "hosting": { + "public": ".output/public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] + } +}