From 48eb916580de51d60aabda631bd607bccc9483d0 Mon Sep 17 00:00:00 2001 From: Ruth Wong Date: Sun, 8 Sep 2024 21:53:26 +0800 Subject: [PATCH] Add env secret during build step --- .github/workflows/deploy-app.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-app.yml b/.github/workflows/deploy-app.yml index d341ac8..89643b1 100644 --- a/.github/workflows/deploy-app.yml +++ b/.github/workflows/deploy-app.yml @@ -11,6 +11,8 @@ jobs: node-version: '18' - run: npm install - run: npm run build + env: + VITE_GOOGLE_API_KEY: ${{ secrets.VITE_GOOGLE_API_KEY }} - name: Upload artifact uses: actions/upload-pages-artifact@v3.0.1 with: