File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- pull_request :
8
7
release :
9
8
types :
10
9
- published
11
- workflow_dispatch :
12
10
13
11
jobs :
14
12
build :
@@ -42,15 +40,22 @@ jobs:
42
40
43
41
- name : Tar the output
44
42
run : tar -C ./dist -cvf ./dist-release/component-detection.tar.gz .
45
-
43
+
44
+ - name : Get release
45
+ if : github.event_name == 'release'
46
+ id : get_release
47
+ uses :
bruceadams/[email protected]
48
+ env :
49
+ GITHUB_TOKEN : ${{ github.token }}
50
+
46
51
- name : Upload Extension Release Asset
47
52
id : upload-component-detection-release-asset
48
53
if : github.event_name == 'release'
49
54
50
55
env :
51
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
57
with :
53
- upload_url : ${{ steps.create_release_draft .outputs.upload_url }}
58
+ upload_url : ${{ steps.get_release .outputs.upload_url }}
54
59
asset_path : ./dist-release/component-detection.tar.gz
55
60
asset_name : component-detection.tar.gz
56
61
asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments