Skip to content

Commit 34d32d2

Browse files
authored
fix-release-script (#16)
1 parent 9462836 commit 34d32d2

File tree

6 files changed

+23
-20
lines changed

6 files changed

+23
-20
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ jobs:
117117
md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}
118118
echo "::set-output name=checksum::$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)"
119119
120-
# - name: Lint plugin
121-
# run: |
122-
# git clone https://github.com/grafana/plugin-validator
123-
# pushd ./plugin-validator/pkg/cmd/plugincheck
124-
# go install
125-
# popd
126-
# plugincheck ${{ steps.metadata.outputs.archive }}
120+
- name: Lint plugin
121+
run: |
122+
git clone https://github.com/grafana/plugin-validator
123+
pushd ./plugin-validator/pkg/cmd/plugincheck2
124+
go install
125+
popd
126+
plugincheck2 -config plugin-validator/config/private-plugin.yaml ${{ steps.metadata.outputs.archive }}
127127
128128
- name: Create release
129129
id: create_release
@@ -158,8 +158,8 @@ jobs:
158158
asset_name: ${{ steps.metadata.outputs.archive-checksum }}
159159
asset_content_type: text/plain
160160

161-
# - name: Publish to Grafana.com
162-
# run: |
163-
# echo A draft release has been created for your plugin. Please review and publish it. Then submit your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
164-
# echo
165-
# echo '{ "id": "${{ steps.metadata.outputs.plugin-id }}", "type": "${{ steps.metadata.outputs.plugin-type }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ steps.metadata.outputs.plugin-version }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}", "md5": "${{ steps.package-plugin.outputs.checksum }}" } } } ] }' | jq .
161+
- name: Publish to Grafana.com
162+
run: |
163+
echo A draft release has been created for your plugin. Please review and publish it. Then submit your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
164+
echo
165+
echo '{ "id": "${{ steps.metadata.outputs.plugin-id }}", "type": "${{ steps.metadata.outputs.plugin-type }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ steps.metadata.outputs.plugin-version }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}", "md5": "${{ steps.package-plugin.outputs.checksum }}" } } } ] }' | jq .

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.2.0
4+
- Migrate the plugin from Angular to React to increase compatibility with Grafana 7.x.
5+
36
## 1.1.1
47
- Handheld devices style improvement.
58

dashboards/demo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
}
156156
],
157157
"title": "Demo 1",
158-
"type": "oc-icon-stat-panel"
158+
"type": "oc-iconstat-panel"
159159
},
160160
{
161161
"cacheTimeout": null,
@@ -261,7 +261,7 @@
261261
}
262262
],
263263
"title": "Demo 2",
264-
"type": "oc-icon-stat-panel"
264+
"type": "oc-iconstat-panel"
265265
},
266266
{
267267
"cacheTimeout": null,
@@ -369,7 +369,7 @@
369369
}
370370
],
371371
"title": "Demo 3",
372-
"type": "oc-icon-stat-panel"
372+
"type": "oc-iconstat-panel"
373373
},
374374
{
375375
"cacheTimeout": null,
@@ -476,7 +476,7 @@
476476
}
477477
],
478478
"title": "Demo 4",
479-
"type": "oc-icon-stat-panel"
479+
"type": "oc-iconstat-panel"
480480
}
481481
],
482482
"refresh": "",

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
- '3000:3000'
77
volumes:
88
- grafana-storage:/var/lib/grafana
9-
- .:/var/lib/grafana/plugins/oc-icon-stat-panel/
9+
- .:/var/lib/grafana/plugins/oc-iconstat-panel/
1010
- ./etc/grafana/grafana.ini:/etc/grafana/grafana.ini
1111
environment:
1212
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}

etc/grafana/grafana.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@
873873
;enable_alpha = false
874874
;app_tls_skip_verify_insecure = false
875875
# Enter a comma-separated list of plugin identifiers to identify plugins to load even if they are unsigned. Plugins with modified signatures are never loaded.
876-
allow_loading_unsigned_plugins = crate-datasource, statistics-panel, oc-icon-stat-panel
876+
allow_loading_unsigned_plugins = oc-iconstat-panel
877877
# Enable or disable installing plugins directly from within Grafana.
878878
;plugin_admin_enabled = false
879879
;plugin_admin_external_manage_enabled = false

src/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
33
"type": "panel",
4-
"name": "oc-icon-stat-panel",
5-
"id": "orchestracities-icon-stat-panel",
4+
"name": "Orchestra Cities Icon Stat Panel",
5+
"id": "oc-iconstat-panel",
66
"info": {
77
"description": "",
88
"author": {

0 commit comments

Comments
 (0)