Skip to content

Deploy notice message to prod (#310) #8

Deploy notice message to prod (#310)

Deploy notice message to prod (#310) #8

Workflow file for this run

name: Generate DB Docs
on:
push:
branches: [main]
# You could test this CI job in a PR by uncommenting the below pull_request line.
# pull_request:
# branches: [develop]
jobs:
generate-docs:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Install dependencies
run: npm ci
- name: Install dbdocs
run: sudo npm install -g dbdocs
- name: Check dbdocs
run: dbdocs
- name: Install DB Generator for Prisma
run: npm install prisma-dbml-generator@0.10.0-dev.1
- name: add generator to Prisma's schema
run: printf '\ngenerator dbml {\n provider = "prisma-dbml-generator"\n includeRelationFields = "false"\n}' >> ./database/schemas/core/schema.prisma
- name: Generate DB Docs schema file
run: npx prisma generate --schema ./database/schemas/core/schema.prisma
- name: Upload DB Docs schema file
env:
DBDOCS_TOKEN: ${{ secrets.DBDOCS_TOKEN }}
run: dbdocs build ./database/schemas/core/dbml/schema.dbml --password ${{ secrets.DBDOCS_PROJECT_PASSWORD }} --project "Pagoda Developer Console"