Deploy njvrzm/enable-temp-credentials-config to dev by @njvrzm #10
This file contains hidden or 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: 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 | |
permissions: {} | |
jobs: | |
cd: | |
name: CD | |
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@ci-cd-workflows/v3 | |
permissions: | |
contents: write | |
id-token: write | |
attestations: write | |
with: | |
branch: ${{ github.event.inputs.branch }} | |
environment: ${{ github.event.inputs.environment }} | |
docs-only: ${{ fromJSON(github.event.inputs.docs-only) }} | |
scopes: universal | |
golangci-lint-version: 2.1.6 | |
github-draft-release: false # publish the github release directly, skipping the draft |