-
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.74 KB
/
Copy pathdeploy.yml
File metadata and controls
63 lines (54 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy to Cloudflare Pages
on:
push:
branches: [main]
workflow_dispatch:
inputs:
submit_all_blog_to_indexnow:
description: 'Submit all blog URLs to IndexNow after deploy'
required: false
default: false
type: boolean
schedule:
- cron: '0 6 * * *'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v7
- name: Checkout charts repo (playground schema source)
uses: actions/checkout@v7
with:
repository: helmforgedev/charts
path: .charts-repo
sparse-checkout: |
charts
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- name: Verify sitemap coverage
run: npm run seo:verify-sitemap
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=helmforge --branch=main --commit-dirty=true
- name: Submit changed blog URLs to IndexNow
env:
INDEXNOW_SOFT_FAIL: '1'
INDEXNOW_SITE_URL: https://helmforge.dev
INDEXNOW_KEY_FILE: public/helmforge-indexnow-key.txt
SUBMIT_ALL_BLOG_TO_INDEXNOW: ${{ inputs.submit_all_blog_to_indexnow || 'false' }}
run: |
args=()
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "$SUBMIT_ALL_BLOG_TO_INDEXNOW" = "true" ]; then
args+=(--all-blog)
fi
node scripts/submit-indexnow.mjs "${args[@]}"