From d0693530d90d89d72ea28ebef2444d33b134eae9 Mon Sep 17 00:00:00 2001 From: Ian Krieger Date: Tue, 25 Jun 2024 14:13:38 -0400 Subject: [PATCH] fix: try explicit export --- .github/workflows/gh-pages.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1827256f..9347169a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -13,10 +13,6 @@ jobs: contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} - env: - REACT_APP_DOC_SEARCH_APP_ID: ${{ secrets.DOC_SEARCH_APP_ID }} - REACT_APP_DOC_SEARCH_INDEX_NAME: ${{ secrets.DOC_SEARCH_INDEX_NAME }} - steps: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -30,7 +26,10 @@ jobs: run: npm ci - name: Build website - run: npm run build + run: | + export REACT_APP_DOC_SEARCH_APP_ID=${{ secrets.DOC_SEARCH_APP_ID }} + export REACT_APP_DOC_SEARCH_INDEX_NAME=${{ secrets.DOC_SEARCH_INDEX_NAME }} + npm run build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0