Skip to content

Commit 5224eed

Browse files
committed
ci: create google-services.json in Cloudflare runtime workflow
1 parent 78b47c4 commit 5224eed

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/cloudflare-pages-runtime.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ jobs:
2121
- name: 🔍 Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: 🔒 Verify Google services secret exists
25+
run: |
26+
if [ -z "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" ]; then
27+
echo "❌ GOOGLE_SERVICES_JSON_BASE64 secret is missing"
28+
exit 1
29+
fi
30+
31+
- name: 📁 Create google-services.json
32+
run: |
33+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 --decode > google-services.json
34+
if ! jq empty google-services.json; then
35+
echo "❌ google-services.json is invalid"
36+
exit 1
37+
fi
38+
env:
39+
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
40+
2441
- name: 📦 Install pnpm
2542
run: npm install -g pnpm@10
2643

0 commit comments

Comments
 (0)