File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 48
48
zip $GRAFANA_PLUGIN_ARTIFACT $GRAFANA_PLUGIN_ID -r
49
49
md5sum $GRAFANA_PLUGIN_ARTIFACT > $GRAFANA_PLUGIN_ARTIFACT_CHECKSUM
50
50
ls
51
+
52
+ - name : Create release
53
+ id : create_release
54
+ uses : actions/create-release@v1
55
+ env :
56
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
+ with :
58
+ tag_name : ${{ github.ref }}
59
+ release_name : Release ${{ github.ref }}
60
+ draft : false
61
+ prerelease : false
62
+
63
+ - name : Upload plugin
64
+ uses : actions/upload-release-asset@v1
65
+ env :
66
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
+ with :
68
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
69
+ asset_path : ./${{ env.GRAFANA_PLUGIN_ARTIFACT }}
70
+ asset_name : ${{ env.GRAFANA_PLUGIN_ARTIFACT }}
71
+ asset_content_type : application/zip
72
+
73
+ - name : Upload plugin checksum
74
+ uses : actions/upload-release-asset@v1
75
+ env :
76
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
+ with :
78
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
79
+ asset_path : ./${{ env.GRAFANA_PLUGIN_ARTIFACT_CHECKSUM }}
80
+ asset_name : ${{ env.GRAFANA_PLUGIN_ARTIFACT_CHECKSUM }}
81
+ asset_content_type : text/plain
You can’t perform that action at this time.
0 commit comments