From 5f16b4889bfab8b93ca4795ce1048f81f8d034c5 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 | 13 ++++++++++++- CHANGELOG.md | 4 ++++ package.json | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2fd724..a4b3a5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,17 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pnpm - - uses: grafana/plugin-actions/build-plugin@release + - uses: ./.github/actions/grafana with: policy_token: ${{ secrets.GRAFANA_POLICY_TOKEN }} + id: build + - name: Upload to Factry Portal + run: | + github-tag=${GITHUB_REF#refs/*/} + 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",