cicd: fix typo in release_manually.yml #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Plugin Validation | |
on: | |
workflow_call: # https://docs.github.com/en/actions/using-workflows/reusing-workflows | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install node modules | |
run: npm install | |
- run: npm run build | |
name: Build the plugin | |
- name: Sign plugin | |
run: npm run sign | |
shell: bash | |
env: | |
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }} | |
if: ${{ env.GRAFANA_ACCESS_POLICY_TOKEN != '' }} # https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-secrets | |
- name: Zip the plugin | |
uses: montudor/action-zip@v1 | |
with: | |
args: zip -qr felixrelleum-geomapwms-panel.zip felixrelleum-geomapwms-panel | |
- name: Run validator | |
run: npx --yes @grafana/plugin-validator@latest -config ./plugin-validator-config.yml -sourceCodeUri file://. felixrelleum-geomapwms-panel.zip # https://github.com/grafana/plugin-validator | |
- name: Clean up | |
run: rm -r felixrelleum-geomapwms-panel.zip | |