diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml index 4f79ae6..fedd8dd 100644 --- a/.github/workflows/netlify.yml +++ b/.github/workflows/netlify.yml @@ -20,6 +20,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20.18 + + - name: Gather Meilisearch APi Key from Netlify config file + run: | + API_KEY=$(grep 'MEILISEARCH_API_KEY' netlify.toml | cut -d '=' -f2 | tr -d ' "') + echo "MEILISEARCH_API_KEY=$API_KEY" >> "$GITHUB_ENV" - name: Build docs.gno.land working-directory: ./docusaurus @@ -30,7 +35,6 @@ jobs: env: MEILISEARCH_URL: "https://docs-search.gnoteam.com" MEILISEARCH_INDEX_UID: "production" - MEILISEARCH_API_KEY: "7a646d537285a92f436b8f2fc000e1482eb82a563f0372e210a3535764338cd7" - name: Deploy to netlify uses: netlify/actions/cli@master