Skip to content

Commit fc53270

Browse files
committed
adapt release action
1 parent c948770 commit fc53270

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

.github/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ outputs:
1313
plugin_path:
1414
description: 'path to the plugin archive'
1515
value: '${{ steps.metadata.outputs.archive }}'
16-
plugin_checksum:
16+
plugin_checksum_path:
1717
description: 'checksum of plugin archive'
1818
value: '${{ steps.metadata.outputs.archive-checksum }}'
1919
runs:

.github/workflows/release.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,7 @@ jobs:
2828
uses: ./.github/build/
2929
with:
3030
release: true
31-
signed: true
32-
33-
# does not work with unsigned plugins!
34-
# - name: Lint plugin
35-
# run: |
36-
# git clone https://github.com/grafana/plugin-validator
37-
# BIN_PATH=`pwd`
38-
# pushd ./plugin-validator/pkg/cmd/plugincheck
39-
# go build -o $BIN_PATH/plugincheck
40-
# popd
41-
# ./plugincheck ${{ steps.build.plugin_path }}
31+
signed: false
4232

4333
- name: Create release
4434
id: create_release
@@ -50,16 +40,4 @@ jobs:
5040
name: Release ${{ github.ref }}
5141
body: ${{ steps.build.changelog_path }}
5242
draft: true
53-
artifacts: ./${{ steps.build.plugin_path }}
54-
artifactContentType: application/zip
55-
56-
- name: Add checksum to release
57-
id: upload-checksum-asset
58-
uses: actions/upload-release-asset@v1
59-
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
with:
62-
upload_url: ${{ steps.create_release.outputs.upload_url }}
63-
asset_path: ./${{ steps.build.plugin_checksum }}
64-
asset_name: ${{ steps.build.plugin_checksum }}
65-
asset_content_type: text/plain
43+
artifacts: ${{ steps.build-signed.plugin_path }},${{ steps.build-unsigned.plugin_path }},${{ steps.build-signed.plugin_checksum_path }},${{ steps.build-unsigned.plugin_checksum_path }}

0 commit comments

Comments
 (0)