If you want to manage your semantic model code with Git and automatically publish to Credible when changes are merged, you can set up a CI/CD pipeline using our GitHub Actions template.Documentation Index
Fetch the complete documentation index at: https://docs.credibledata.com/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
When you push changes to yourmain branch:
- Detect - Pipeline identifies which packages changed
- Version - Automatically bumps the patch version in
publisher.json - Publish - Deploys packages to your Credible environment
Prerequisites
- A GitHub repository for your packages
- Admin access to the repository
- A Credible organization and environment
Setup
Step 1: Create Repository from Template
- Go to the CI/CD template repository
- Click “Use this template” → “Create a new repository”
- Choose your organization and enter a repository name
Step 2: Configure GitHub App
The CI/CD bot needs a GitHub App to commit version bumps back to your repository. Create the App:- Go to your GitHub organization: Settings → Developer settings → GitHub Apps → New GitHub App
- Configure:
- Name:
credible-cicd-bot - Webhook: Uncheck “Active”
- Repository permissions: Contents (Read/Write), Pull requests (Read/Write), Metadata (Read)
- Installation: “Only on this account”
- Name:
- Click Create GitHub App
- Note the App ID at the top of the page
- Scroll to Private keys → Generate a private key (save the
.pemfile) - Go to Install App → Install on your repository
Step 3: Configure Secrets
Go to your repository: Settings → Secrets and variables → Actions → New repository secret| Secret | Value |
|---|---|
CICD_BOT_APP_ID | Your GitHub App ID |
CICD_BOT_APP_PRIVATE_KEY | Contents of the .pem file |
JWT_ACCESS_TOKEN | Credible API token (see note below) |
Generate a Credible API token using the CLI:
cred add group-access-token. See CLI documentation for details.
Step 4: Configure Variables
Go to: Settings → Secrets and variables → Actions → Variables| Variable | Value |
|---|---|
CRED_ORG | Your Credible organization name |
CRED_PROJECT | Your Credible environment name (the env var name retains PROJECT for backwards compatibility with the CLI) |
SET_LATEST | true or false (optional, defaults to true) |
Step 5: Configure Branch Protection
- Go to Settings → Branches → Add branch protection rule
- Branch name pattern:
main - Enable:
- Allow specified actors to bypass required pull requests → Add
credible-cicd-bot - Require status checks to pass before merging
- Restrict who can push to matching branches → Add
credible-cicd-bot
- Allow specified actors to bypass required pull requests → Add
Repository Structure
Your repository should follow this structure:publisher.json: