From 321b5bfd28d899173fba3aa1a245df4a90a0f207 Mon Sep 17 00:00:00 2001 From: Adam Akbar Date: Fri, 11 Oct 2024 13:57:23 +0800 Subject: [PATCH] Refactor firebase-hosting-merge.yml to include environment variables for Sentry and Firebase secrets (#23) --- .github/workflows/firebase-hosting-merge.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 3a6a1b5..113b2da 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -13,6 +13,15 @@ jobs: - uses: actions/checkout@v2 - run: npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 + env: + SENTRY_AUTH_TOKEN: '${{ secrets.SENTRY_AUTH_TOKEN }}' + FIREBASE_API_KEY: '${{ secrets.FIREBASE_API_KEY }}' + FIREBASE_APP_ID: '${{ secrets.FIREBASE_APP_ID }}' + FIREBASE_AUTH_DOMAIN: '${{ secrets.FIREBASE_AUTH_DOMAIN }}' + FIREBASE_MEASUREMENT_ID: '${{ secrets.FIREBASE_MEASUREMENT_ID }}' + FIREBASE_MESSAGING_SENDER_ID: '${{ secrets.FIREBASE_MESSAGING_SENDER_ID }}' + FIREBASE_PROJECT_ID: '${{ secrets.FIREBASE_PROJECT_ID }}' + FIREBASE_STORAGE_BUCKET: '${{ secrets.FIREBASE_STORAGE_BUCKET }}' with: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SIMULASI_GRADING_SAWIT }}'