refactor(api-key): Inject Ghost API key at build time

This commit is contained in:
2026-02-17 19:21:42 +01:00
parent 9a3b35b428
commit 99ddd47649
3 changed files with 9 additions and 10 deletions

View File

@@ -16,9 +16,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Create Ghost Config
run: |
echo "window.GhostConfig = { ghostApiKey: '${{ secrets.GHOST_CONTENT_API_KEY }}', ghostApiUrl: '${{ secrets.GHOST_ADMIN_API_URL }}' };" > assets/js/ghost-config.js
- name: Build theme
run: pnpm build
- name: Deploy Ghost Theme