Skip to content

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

Add pipeline step to upload packaged plugin to Factry Portal

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

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: ./.github/actions/grafana
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 "os=any" \
-F "arch=any" \
-F "version=${{steps.build.outputs.plugin-version}}" \
-F "binary=@${{ steps.build.outputs.archive }}" \
-F "signature=$(cat ${{ steps.build.outputs.archive-sha1sum }})" \
--url "${{vars.FACTRY_PORTAL_PRODUCT_UPDATES_URL }}"