From 495d15ce40f5db7042c86ab8cf6420909cd5dd4b Mon Sep 17 00:00:00 2001 From: Ross Sullivan Date: Tue, 16 Sep 2025 11:52:59 +0900 Subject: [PATCH] chore: prepare plugin publishing --- .github/workflows/release.yml | 22 +++++++++++----------- pkg/main.go | 2 +- src/plugin.json | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f03bea..5d64d9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,8 +8,8 @@ on: jobs: release: runs-on: ubuntu-latest - env: - GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com. +# env: +# GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com. steps: - uses: actions/checkout@v3 - name: Setup Node.js environment @@ -51,15 +51,15 @@ jobs: version: latest args: buildAll - - name: Warn missing Grafana API key - run: | - echo Please generate a Grafana API key: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-an-api-key - echo Once done please follow the instructions found here: https://github.com/${{github.repository}}/blob/main/README.md#using-github-actions-release-workflow - if: ${{ env.GRAFANA_API_KEY == '' }} - - - name: Sign plugin - run: npm run sign - if: ${{ env.GRAFANA_API_KEY != '' }} +# - name: Warn missing Grafana API key +# run: | +# echo Please generate a Grafana API key: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-an-api-key +# echo Once done please follow the instructions found here: https://github.com/${{github.repository}}/blob/main/README.md#using-github-actions-release-workflow +# if: ${{ env.GRAFANA_API_KEY == '' }} +# +# - name: Sign plugin +# run: npm run sign +# if: ${{ env.GRAFANA_API_KEY != '' }} - name: Get plugin metadata id: metadata diff --git a/pkg/main.go b/pkg/main.go index 236403d..905db91 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -17,7 +17,7 @@ func main() { // from Grafana to create different instances of SampleDatasource (per datasource // ID). When datasource configuration changed Dispose method will be called and // new datasource instance created using NewSampleDatasource factory. - if err := datasource.Manage("quickwit-quickwit-datasource", quickwit.NewQuickwitDatasource, datasource.ManageOpts{}); err != nil { + if err := datasource.Manage("paypay-quickwit-datasource", quickwit.NewQuickwitDatasource, datasource.ManageOpts{}); err != nil { log.DefaultLogger.Error(err.Error()) os.Exit(1) } diff --git a/src/plugin.json b/src/plugin.json index e7501f0..48b23f5 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -1,8 +1,8 @@ { "$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json", "type": "datasource", - "name": "Quickwit", - "id": "quickwit-quickwit-datasource", + "name": "PayPay Quickwit", + "id": "paypay-quickwit-datasource", "metrics": true, "backend": true, "alerting": true,