Skip to content

Commit 006dd45

Browse files
authored
Merge pull request #588 from supabase/ci/docs-revalidation
ci(docs): revalidate docs site pages when docs are changed
2 parents 6c67a9e + a2990f3 commit 006dd45

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/docs.yml

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

0 commit comments

Comments
 (0)