This is an automated email from the ASF dual-hosted git repository.

miao pushed a commit to branch grafana_plugin
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/grafana_plugin by this push:
     new aaffea9b2c8 Sign grafana plugin
aaffea9b2c8 is described below

commit aaffea9b2c80acfe47efccef58cf10311effbfb3
Author: Cloudwise_Luke <[email protected]>
AuthorDate: Wed Jun 14 13:07:31 2023 +0800

    Sign grafana plugin
---
 .github/workflows/grafana-plugin.yml | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/grafana-plugin.yml 
b/.github/workflows/grafana-plugin.yml
index 38f7757442e..56739a6739b 100644
--- a/.github/workflows/grafana-plugin.yml
+++ b/.github/workflows/grafana-plugin.yml
@@ -3,14 +3,14 @@ name: Grafana plugin build
 on:
   push:
     branches:
-      - master
+      - grafana_plugin
       - "new_*"
     paths-ignore:
       - 'docs/**'
       - 'site/**'
   pull_request:
     branches:
-      - master
+      - grafana_plugin
       - "new_*"
     paths-ignore:
       - 'docs/**'
@@ -63,3 +63,21 @@ jobs:
         run: |
           cd iotdb-connector/grafana-plugin/
           ./backend-compile.sh
+
+      - name: Sign grafana plugin
+        run: npx @grafana/sign-plugin@latest
+        env:
+          GRAFANA_API_KEY: ${{ secrets.GRAFANA_PLUGIN_TOKEN }}
+
+      - name: Package plugin
+        run: |
+          cd iotdb-connector/grafana-plugin
+          mv dist apache-iotdb-datasource
+          zip -r apache-iotdb-datasource.zip apache-iotdb-datasource
+
+
+      - name: Upload artifact
+        uses: actions/upload-artifact@v2
+        with:
+          name: apache-iotdb-datasource
+          path: iotdb-connector/grafana-plugin/apache-iotdb-datasource.zip

Reply via email to