Skip to content

Add pipeline step to upload packaged plugin to Factry Portal #14

Add pipeline step to upload packaged plugin to Factry Portal

Add pipeline step to upload packaged plugin to Factry Portal #14

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.
permissions: read-all
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm
- uses: grafana/plugin-actions/build-plugin@release
with:
policy_token: ${{ secrets.GRAFANA_POLICY_TOKEN }}
id: build
- name: Upload to Factry Portal
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.FACTRY_PORTAL_PRODUCT_UPDATES_JWT_TOKEN }}" \
-F "productType=${{steps.build.outputs.plugin-id }}" \
-F "product=grafana-datasource" \
-F "version=${{steps.build.outputs.plugin-version }}" \
-F "binary=@${{ steps.build.outputs.archive }}" \
--url "${{vars.FACTRY_PORTAL_PRODUCT_UPDATES_URL }}"