From 11839f91f46c10d15f687ea5b52bb84664c32800 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Fri, 22 Mar 2024 15:21:47 -0500 Subject: [PATCH] debug: debug staging deployment --- .firebaserc | 2 +- .github/workflows/deploy-preview.yml | 2 +- .github/workflows/deploy-staging.yml | 2 +- .../firebase-hosting-pull-request.yml | 20 +++++++++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/firebase-hosting-pull-request.yml diff --git a/.firebaserc b/.firebaserc index 0591f69d..e983fad5 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,6 +1,6 @@ { "projects": { - "default": "zksync-docs-staging", + "default": "zksync-docs-staging-5eb09", "prod": "zksync-docs" }, "etags": {} diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index acbbbb6c..dc5f22d1 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -26,5 +26,5 @@ jobs: uses: matter-labs/action-hosting-deploy@main with: repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}" projectId: zksync-docs-staging-5eb09 \ No newline at end of file diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index d460cc0a..e0086118 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 }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}" projectId: zksync-docs-staging-5eb09 channelId: live \ No newline at end of file diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 00000000..e1805f76 --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -0,0 +1,20 @@ +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on PR +'on': pull_request +permissions: + checks: write + contents: read + pull-requests: write +jobs: + build_and_preview: + if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}' + projectId: zksync-docs-staging-5eb09