Skip to content

Commit d599782

Browse files
committed
Update github action
1 parent 3212af4 commit d599782

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,34 @@ jobs:
4848
zip $GRAFANA_PLUGIN_ARTIFACT $GRAFANA_PLUGIN_ID -r
4949
md5sum $GRAFANA_PLUGIN_ARTIFACT > $GRAFANA_PLUGIN_ARTIFACT_CHECKSUM
5050
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

0 commit comments

Comments
 (0)