From 1528a2fd9ea3f76112f4fc42fd3c5c536e5f5e00 Mon Sep 17 00:00:00 2001 From: Arnaud Van der Poorten Date: Fri, 5 Jul 2024 15:27:47 +0200 Subject: [PATCH] Add pipeline step to upload packaged plugin to Factry Portal --- .github/workflows/release.yml | 10 ++++++++++ CHANGELOG.md | 4 ++++ package.json | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2fd724..64ea778 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,3 +20,13 @@ jobs: - 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 }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d76e83..82a0809 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v2.0.3-beta + +- Added automatic publishing to Factry Portal + ## v2.0.2 ### Changes diff --git a/package.json b/package.json index e5054b0..247e229 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "factry-historian-datasource", - "version": "2.0.2", + "version": "2.0.3-beta", "description": "A datasource plugin for Factry Historian", "scripts": { "build": "webpack -c ./.config/webpack/webpack.config.ts --env production",