Skip to content

Commit

Permalink
Add pipeline step to upload packaged plugin to Factry Portal
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Van der Poorten committed Jul 5, 2024
1 parent 6dbb80e commit ae4abfb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ jobs:
- uses: grafana/plugin-actions/build-plugin@release
with:
policy_token: ${{ secrets.GRAFANA_POLICY_TOKEN }}
- name: Upload to Factry Portal
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.FACTRY_PORTAL_PRODUCT_UPDATES_JWT_TOKEN }}" \
-F "productType=${{steps.metadata.outputs.plugin-id }}" \
-F "product=grafana-datasource" \
-F "version=${{steps.metadata.outputs.plugin-version }}" \
-F "binary=${{ steps.metadata.outputs.archive }}" \
--url "${PORTAL_URL}/api/product-updates"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
major = 2
minor = 0
patch = 2
prerelease = -beta
prerelease = -beta3
project_name=factry-historian-datasource

COMMIT=$(shell git rev-parse --short HEAD)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "factry-historian-datasource",
"version": "2.0.2-beta",
"version": "2.0.2-beta3",
"description": "A datasource plugin for Factry Historian",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down

0 comments on commit ae4abfb

Please sign in to comment.