Skip to content

Release

Release #2

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*' # Run workflow on version tags, e.g. v1.0.0.
on:
workflow_dispatch:
inputs:
release:
description: 'Release a new version of the app plugin'
required: true
default: false
type: 'boolean'
permissions:
contents: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: grafana/plugin-actions/build-plugin@release
id: build-release
with:
policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
- id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
common_secrets: |
GCP_UPLOAD_ARTIFACTS_KEY=grafana/integration-artifacts-uploader-service-account:'credentials.json'
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ env.GCP_UPLOAD_ARTIFACTS_KEY }}
- id: 'upload-to-gcs'
name: 'Upload assets to latest'
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
path: ./${{ steps.build-release.steps.metadata.outputs.archive }}
destination: 'grafana-traces-app/'
parent: false