Skip to content

chore: add sign plugin step #29

chore: add sign plugin step

chore: add sign plugin step #29

Workflow file for this run

# This GitHub Action automates the process of building Grafana plugins.
# (For more information, see https://github.com/grafana/plugin-actions/blob/main/build-plugin/README.md)
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '20'
- run: echo "GRAFANA_ACCESS_POLICY_TOKEN=${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}" >> $GITHUB_ENV
- name: Verify secret
run: echo "First few characters of the token is ${GRAFANA_ACCESS_POLICY_TOKEN:0:4}"
- run: mkdir dist
- run: cp src/plugin.json dist/plugin.json
- run: npx @grafana/sign-plugin@latest
- uses: grafana/plugin-actions/build-plugin@release
with:
grafana_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}