Skip to content

automated release 1.0.0 #31

automated release 1.0.0

automated release 1.0.0 #31

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:
workflow_dispatch:
push:
tags:
- 'v*' # Run workflow on version tags, e.g. v1.0.0.
permissions:
contents: write
id-token: write
jobs:
release:
if: ${{ github.actor != 'grafanabot' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: grafana/plugin-actions/build-plugin@main
id: build-release
with:
policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
- name: Get plugin metadata
id: metadata
run: |
sudo apt-get install jq
export GRAFANA_PLUGIN_ID=$(cat src/plugin.json | jq -r .id)
export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-latest.zip
echo "plugin-id=${GRAFANA_PLUGIN_ID}" >> $GITHUB_OUTPUT
echo "archive=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT
- 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: 'create-latest'
run: cp ${{ steps.build-release.outputs.archive }} ${{ steps.metadata.outputs.archive }}
- id: 'upload-to-gcs'
name: 'Upload assets to latest'
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
path: ./
destination: 'integration-artifacts/grafana-lokiexplore-app/'
glob: '*.zip'
parent: false