Skip to content

Commit

Permalink
Sign plugin in release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowee committed Mar 13, 2021
1 parent 13588b0 commit e35e74d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
release:
name: Release
environment: grafana_sign_environment
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -27,12 +28,17 @@ jobs:
- name: Init
run:
yarn install
- name: Test & lint
- name: Test & Lint
run:
yarn ci
- name: Build
run:
yarn build
- name: Sign Dist
env: # Or as an environment variable
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }}
run:
npx @grafana/toolkit plugin:sign
- name: Create tarball
run:
tar czf /tmp/dist.tar.gz --transform s/^dist/traceroute-map-panel/ dist/
Expand Down

0 comments on commit e35e74d

Please sign in to comment.