Prerequisites
Before using record-release, you need to set up your application in the Groo Ops Dashboard.
What You Need
- A Groo Ops account - Access to ops.groo.dev
- A registered application - Your app must be registered in the dashboard
- An API token - A token with write permissions for recording deployments
Register Your Application
Register your application in the Groo Ops Dashboard to track deployments.
- Go to ops.groo.dev
- Sign in with your Groo account
- Click "New Application"
- Enter your application details:
- Name: A unique identifier (e.g.,
my-app) - Description: Optional description
- Name: A unique identifier (e.g.,
- Click "Create"
Initial Versions (Optional)
When creating an application, you can optionally set initial versions for each environment:
- Production: e.g.,
1.0.0 - Staging: e.g.,
0.5.0
This is useful if you're migrating from another system and want to continue from an existing version number.
Create an API Token
Create an API token to authenticate the record-release action with the Ops Dashboard.
- Go to ops.groo.dev
- Navigate to your application
- Click "Tokens" tab
- Click "Create Token"
- Select permission level:
- Read: Can only query version information
- Write: Can record deployments and query versions
- Copy the generated token (starts with
groo_)
Save Your Token
The token is only shown once. Make sure to copy it before closing the dialog.
Add Token to GitHub Secrets
- Go to your GitHub repository
- Navigate to Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name:
OPS_API_TOKEN - Value: Paste your token
- Click "Add secret"
Reference the secret in your workflow:
- uses: groo-dev/record-release@v1
with:
token: ${{ secrets.OPS_API_TOKEN }}
environment: production
bump: patch