Sample of GitHub Actions to execute CI for dbdocs.
When a pull request to the main branch is opened, synchronized, reopened, or closed, dbdocs is built using sample.dbml.
- If closed, the main branch is checked out for the build.
- If not closed, the pull request's branch is checked out for the build.
Adding DBDOCS_TOKEN to the repository secrets is required for dbdocs login. The method for generating this token can be found in the official documentation.
The content of sample.dbml is the same as that used in the Getting Started section of the official documentation.