Skip to content

Commit

Permalink
ci: fix release workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote committed Jan 6, 2024
1 parent 969b64d commit 3f9bd76
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
# 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.

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: grafana/plugin-actions/build-plugin@release
# uncomment to enable plugin sign in
#with:
# see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token to generate it
# save the value in your repository secrets
#policy_token: $
#usage of GRAFANA_API_KEY is deprecated prefer policy_token
#grafana_token: $
# Uncomment to enable plugin signing
# (For more info on how to generate the access policy token see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token)
#with:
# Make sure to save the token in your repository secrets
#policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
# Usage of GRAFANA_API_KEY is deprecated, prefer `policy_token` option above
#grafana_token: ${{ secrets.GRAFANA_API_KEY }}

0 comments on commit 3f9bd76

Please sign in to comment.