From 545af53af94181bfb405ce6d7527c8fcc3ceb747 Mon Sep 17 00:00:00 2001 From: Xyven1 Date: Sun, 17 Sep 2023 04:56:12 +0000 Subject: [PATCH] maybe finally correct workflow --- .github/workflows/firebase-hosting-merge.yml | 4 ++++ .github/workflows/firebase-hosting-pull-request.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 2a1fe90..e1ff41e 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -17,6 +17,10 @@ jobs: node-version: 20 cache: 'npm' - run: npm ci && npm run build + env: + VITE_GOOGLE_CLIENT_ID: ${{ vars.VITE_GOOGLE_CLIENT_ID }} + VITE_GOOGLE_CLIENT_SECRET: ${{ vars.VITE_GOOGLE_CLIENT_SECRET }} + VITE_BASE_URL: ${{ vars.VITE_BASE_URL }} - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 52deb27..dcc654b 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -15,6 +15,10 @@ jobs: node-version: 20 cache: 'npm' - run: npm ci && npm run build + env: + VITE_GOOGLE_CLIENT_ID: ${{ vars.VITE_GOOGLE_CLIENT_ID }} + VITE_GOOGLE_CLIENT_SECRET: ${{ vars.VITE_GOOGLE_CLIENT_SECRET }} + VITE_BASE_URL: ${{ vars.VITE_BASE_URL }} - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}'