Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions .github/workflows/bundle-stats.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
name: Bundle Stats
# name: Bundle Stats

on:
pull_request:
branches:
- main
# on:
# pull_request:
# branches:
# - main

permissions:
contents: write
pull-requests: write
actions: read
# permissions:
# contents: write
# pull-requests: write
# actions: read

jobs:
compare:
runs-on: ubuntu-latest
# jobs:
# compare:
# runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

- uses: grafana/plugin-actions/bundle-size@main
# - uses: grafana/plugin-actions/bundle-size@main
# with:
# node-version: '22'
232 changes: 0 additions & 232 deletions .github/workflows/ci.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Plugins - CD
run-name: Deploy ${{ inputs.branch }} to ${{ inputs.environment }} by @${{ github.actor }}

on:
workflow_dispatch:
inputs:
branch:
description: Branch to publish from. Can be used to deploy PRs to dev
default: main
environment:
description: Environment to publish to
required: true
type: choice
options:
- "dev"
- "ops"
- "prod"
docs-only:
description: Only publish docs, do not publish the plugin
default: false
type: boolean

jobs:
cd:
name: CD
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@main
with:
branch: ${{ github.event.inputs.branch }}
environment: ${{ github.event.inputs.environment }}
docs-only: ${{ fromJSON(github.event.inputs.docs-only) }}
16 changes: 16 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Plugins - CI

on:
push:
branches:
- main
pull_request:

jobs:
ci:
name: CI
uses: grafana/plugin-ci-workflows/.github/workflows/ci.yml@main
with:
plugin-version-suffix: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
node-version: '22'
golangci-lint-version: '2.0.2'
3 changes: 3 additions & 0 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
],
"version": "%VERSION%",
"updated": "%TODAY%"
},
"dependencies": {
"grafanaDependency": ">=11.6.x"
}
}
Loading