Skip to content

Commit 12d3c83

Browse files
authored
fix: centralizing Meilisearch Api Key value (#69)
* meilisearch unifiex api key * meilisearch unifiex api key modified workflow * cleanup
1 parent 43145ff commit 12d3c83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/netlify.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: 20.18
23+
24+
- name: Gather Meilisearch APi Key from Netlify config file
25+
run: |
26+
API_KEY=$(grep 'MEILISEARCH_API_KEY' netlify.toml | cut -d '=' -f2 | tr -d ' "')
27+
echo "MEILISEARCH_API_KEY=$API_KEY" >> "$GITHUB_ENV"
2328
2429
- name: Build docs.gno.land
2530
working-directory: ./docusaurus
@@ -30,7 +35,6 @@ jobs:
3035
env:
3136
MEILISEARCH_URL: "https://docs-search.gnoteam.com"
3237
MEILISEARCH_INDEX_UID: "production"
33-
MEILISEARCH_API_KEY: "7a646d537285a92f436b8f2fc000e1482eb82a563f0372e210a3535764338cd7"
3438

3539
- name: Deploy to netlify
3640
uses: netlify/actions/cli@master

0 commit comments

Comments
 (0)