@@ -19,17 +19,12 @@ jobs:
1919 - name : build signed
2020 id : build-signed
2121 uses : ./.github/build/
22+ env :
23+ GRAFANA_API_KEY : ${{ secrets.GRAFANA_API_KEY }}
2224 with :
2325 release : true
2426 signed : true
2527
26- - name : build unsigned
27- id : build-unsigned
28- uses : ./.github/build/
29- with :
30- release : true
31- signed : false
32-
3328 - name : Create release
3429 id : create_release
3530 uses : ncipollo/release-action@v1
4035 name : Release ${{ github.ref }}
4136 body : ${{ steps.build.changelog_path }}
4237 draft : true
43- artifacts : ${{ steps.build-signed.plugin_path }},${{ steps.build-unsigned.plugin_path }},${{ steps.build-signed.plugin_checksum_path }},${{ steps.build-unsigned.plugin_checksum_path }}
38+ artifacts : ${{ steps.build-signed.outputs.plugin_path }},${{ steps.build-signed.outputs.plugin_checksum_path }}
39+
40+ - uses : actions/checkout@v3
41+
42+ - name : build unsigned
43+ id : build-unsigned
44+ uses : ./.github/build/
45+ with :
46+ release : true
47+ signed : false
48+
49+ # TODO: use another action, this is deprecated and generates warnings
50+ - name : Add unsigned files to release
51+ uses : actions/upload-release-asset@v1
52+ env :
53+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54+ with :
55+ upload_url : ${{ steps.create_release.outputs.upload_url }}
56+ asset_path : ./${{ steps.build-unsigned.outputs.plugin_path }}
57+ asset_name : ${{ steps.build-unsigned.outputs.plugin_path }}
58+ asset_content_type : text/plain
59+
60+ # TODO: use another action, this is deprecated and generates warnings
61+ - name : Add unsigned files to release
62+ uses : actions/upload-release-asset@v1
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ with :
66+ upload_url : ${{ steps.create_release.outputs.upload_url }}
67+ asset_path : ./${{ steps.build-unsigned.outputs.plugin_checksum_path }}
68+ asset_name : ${{ steps.build-unsigned.outputs.plugin_checksum_path }}
69+ asset_content_type : text/plain
0 commit comments