Please take a look in plugin-tools repository for an up-to-date example: https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin/templates/github/ci/.github/workflows
This repository contains a set of workflows for building, testing, and releasing Grafana plugins.
These workflows require no modifications to use:
- Create a
.github/workflows
directory in the root directory of your plugin - Add the workflows, e.g.
.github/workflows/ci.yml
.
- ci.yml: Build and test your plugin on every commit
- release.yml: Create a GitHub release with the packaged plugin as a release asset. Requires that you create an encrypted secret for your
GRAFANA_API_KEY
.
Add the following script to your package.json
:
"scripts": {
"sign": "grafana-toolkit plugin:sign"
}