Skip to content

Commit 7d45844

Browse files
committed
ci(docs): revalidate docs site pages when docs are changed
1 parent 6c67a9e commit 7d45844

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# testing only
8+
- ci/docs-revalidation
9+
# paths:
10+
# - "docs/**"
11+
12+
permissions: {}
13+
14+
jobs:
15+
deploy-docs:
16+
runs-on: ubuntu-latest
17+
env:
18+
DOCS_REVALIDATION_KEY: ${{ secrets.DOCS_REVALIDATION_KEY }}
19+
steps:
20+
- name: Request docs revalidation
21+
run: |
22+
curl -X POST https://supabase.com/docs/api/revalidate \
23+
-H 'Content-Type: application/json' \
24+
-H 'Authorization: Bearer ${{ secrets.DOCS_REVALIDATION_KEY }}' \
25+
-d '{"tags": ["graphql"]}'

0 commit comments

Comments
 (0)