refactor(api-key): Inject Ghost API key at build time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user