Skip to content

Commit c2cb5c4

Browse files
committed
test setting env var
1 parent 76f8784 commit c2cb5c4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Test Docusaurus
2+
3+
on:
4+
push:
5+
branches: [debug-env] # adjust as needed
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
env:
11+
INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "16" # or your preferred version
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
# Debug step to verify the environment variable is set.
25+
- name: Verify INKEEP_API_KEY is set
26+
run: |
27+
echo "Verifying environment variable..."
28+
if [ -z "$INKEEP_API_KEY" ]; then
29+
echo "Error: INKEEP_API_KEY is NOT set"
30+
exit 1
31+
else
32+
echo "Success: INKEEP_API_KEY is set"
33+
# Optional: Print out the length of the key instead of the key itself.
34+
echo "The key has ${#INKEEP_API_KEY} characters."
35+
fi
36+
37+
- name: Build Docusaurus site
38+
run: npm run build

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy