From 58573fda2b4875d03441a7b5e4a1ab4d0cf50d6c Mon Sep 17 00:00:00 2001 From: Ian Krieger Date: Tue, 25 Jun 2024 14:35:56 -0400 Subject: [PATCH] fix(config): move variables to top level of github yml --- .github/workflows/gh-pages.yml | 8 +++++--- docusaurus.config.ts | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f2f3ac67..1827256f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: jobs: build-publish: @@ -12,6 +13,10 @@ 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 @@ -26,9 +31,6 @@ jobs: - name: Build website run: npm run build - env: - REACT_APP_DOC_SEARCH_APP_ID: ${{ secrets.DOC_SEARCH_APP_ID }} - REACT_APP_DOC_SEARCH_INDEX_NAME: ${{ secrets.DOC_SEARCH_INDEX_NAME }} - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 diff --git a/docusaurus.config.ts b/docusaurus.config.ts index f4a2fc20..aa3f2c8e 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,7 +1,6 @@ import {themes as prismThemes} from 'prism-react-renderer'; import type {Config} from '@docusaurus/types'; import type * as Preset from '@docusaurus/preset-classic'; -import * as process from "node:process"; const config: Config = { title: 'Brave Ads',