forked from hpi-studyu/studyu
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.1 KB
/
db-docs.yml
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
name: Generate database docs
on:
push:
branches:
- '**'
- '!dev'
- '!main'
paths:
- 'database/**'
- 'docker/supabase/**'
concurrency:
group: ${{ github.ref }}-db-docs
cancel-in-progress: true
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate documentation
env:
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: your-super-secret-and-long-postgres-password
POSTGRES_DB: postgres
DB_DOCS_DEST: ${{ github.workspace }}/docs/database
run: |
docker network create studyu_network || true
docker compose -f docker/supabase/docker-compose-db.yml -f .github/docker/db-docs.yml up --abort-on-container-exit
- name: Commit documentation
run: |
git config --global user.name "StudyU Documenter"
git config --global user.email "studyu-documenter"
git add --all
git commit -m 'docs: update database documentation' || true
git push